#include "chrome/browser/extensions/api/preference/preference_api_constants.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/extensions/api/preference/preference_api_constants.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/profiles/profile.h"
// ProfileKeyedAPI implementation.
ProfileKeyedAPIFactory<ChromeDirectSettingAPI>*
ChromeDirectSettingAPI::GetFactoryInstance() {
// ProfileKeyedAPI implementation.
ProfileKeyedAPIFactory<ChromeDirectSettingAPI>*
ChromeDirectSettingAPI::GetFactoryInstance() {
profile_->GetPrefs()->FindPreference(pref_key.c_str());
const base::Value* value = preference->GetValue();
profile_->GetPrefs()->FindPreference(pref_key.c_str());
const base::Value* value = preference->GetValue();
result->Set(preference_api_constants::kValue, value->DeepCopy());
base::ListValue args;
args.Append(result.release());
result->Set(preference_api_constants::kValue, value->DeepCopy());
base::ListValue args;
args.Append(result.release());