Home
last modified time | relevance | path

Searched refs:extension_prefs (Results 1 – 25 of 52) sorted by relevance

123

/external/chromium_org/apps/
Dapp_restore_service_browsertest.cc38 ExtensionPrefs* extension_prefs = ExtensionPrefs::Get(browser()->profile()); in IN_PROC_BROWSER_TEST_F() local
41 ASSERT_TRUE(extension_prefs->IsExtensionRunning(extension->id())); in IN_PROC_BROWSER_TEST_F()
47 ASSERT_FALSE(extension_prefs->IsExtensionRunning(extension->id())); in IN_PROC_BROWSER_TEST_F()
50 extension_prefs->SetExtensionRunning(extension->id(), true); in IN_PROC_BROWSER_TEST_F()
65 ExtensionPrefs* extension_prefs = ExtensionPrefs::Get(browser()->profile()); in IN_PROC_BROWSER_TEST_F() local
72 ASSERT_TRUE(extension_prefs->IsActive(extension->id())); in IN_PROC_BROWSER_TEST_F()
81 ASSERT_TRUE(extension_prefs->IsActive(extension->id())); in IN_PROC_BROWSER_TEST_F()
91 ASSERT_FALSE(extension_prefs->IsActive(extension->id())); in IN_PROC_BROWSER_TEST_F()
97 ASSERT_TRUE(extension_prefs->IsActive(extension->id())); in IN_PROC_BROWSER_TEST_F()
103 ASSERT_FALSE(extension_prefs->IsActive(extension->id())); in IN_PROC_BROWSER_TEST_F()
[all …]
Dapp_restore_service.cc45 ExtensionPrefs* extension_prefs = ExtensionPrefs::Get(profile_); in HandleStartup() local
50 if (extension_prefs->IsExtensionRunning(extension->id())) { in HandleStartup()
113 ExtensionPrefs* extension_prefs = ExtensionPrefs::Get(profile_); in RecordAppActiveState() local
117 if (!extension_prefs->IsExtensionRunning(id)) in RecordAppActiveState()
120 extension_prefs->SetIsActive(id, is_active); in RecordAppActiveState()
Dapp_load_service.cc125 extensions::ExtensionPrefs* extension_prefs = in OnExtensionUnloaded() local
128 extension_prefs->IsActive(extension->id()) && in OnExtensionUnloaded()
Dlauncher.cc390 extensions::ExtensionPrefs* extension_prefs = in RestartPlatformApp() local
392 bool had_windows = extension_prefs->IsActive(extension->id()); in RestartPlatformApp()
393 extension_prefs->SetIsActive(extension->id(), false); in RestartPlatformApp()
/external/chromium_org/chrome/browser/extensions/api/signed_in_devices/
Dsigned_in_devices_api.cc31 ExtensionPrefs* extension_prefs, in GetIdMappingDictionary() argument
34 if (!extension_prefs->ReadPrefAsDictionary( in GetIdMappingDictionary()
42 extension_prefs->UpdateExtensionPref( in GetIdMappingDictionary()
57 ExtensionPrefs* extension_prefs) { in GetAllSignedInDevices() argument
61 extension_prefs, in GetAllSignedInDevices()
74 extension_prefs->UpdateExtensionPref(extension_id, in GetAllSignedInDevices()
92 ExtensionPrefs* extension_prefs = ExtensionPrefs::Get(profile); in GetAllSignedInDevices() local
94 return GetAllSignedInDevices(extension_id, device_tracker, extension_prefs); in GetAllSignedInDevices()
Dsigned_in_devices_api_unittest.cc77 TestExtensionPrefs extension_prefs( in TEST() local
83 extension_prefs.AddExtension(extension_name); in TEST()
103 extension_test.get()->id(), &device_tracker, extension_prefs.prefs()); in TEST()
124 extension_test.get()->id(), &device_tracker, extension_prefs.prefs()); in TEST()
Dsigned_in_devices_api.h38 ExtensionPrefs* extension_prefs);
/external/chromium_org/chrome/browser/extensions/
Dextension_garbage_collector.cc164 ExtensionPrefs* extension_prefs = ExtensionPrefs::Get(context_); in GarbageCollectExtensions() local
165 DCHECK(extension_prefs); in GarbageCollectExtensions()
167 if (extension_prefs->pref_service()->ReadOnly()) in GarbageCollectExtensions()
183 extension_prefs->GetInstalledExtensionsInfo()); in GarbageCollectExtensions()
190 info = extension_prefs->GetAllDelayedInstallInfo(); in GarbageCollectExtensions()
210 ExtensionPrefs* extension_prefs = ExtensionPrefs::Get(context_); in GarbageCollectIsolatedStorageIfNeeded() local
211 DCHECK(extension_prefs); in GarbageCollectIsolatedStorageIfNeeded()
212 if (!extension_prefs->NeedsStorageGarbageCollection()) in GarbageCollectIsolatedStorageIfNeeded()
214 extension_prefs->SetNeedsStorageGarbageCollection(false); in GarbageCollectIsolatedStorageIfNeeded()
Dtest_extension_system.cc74 ExtensionPrefs* extension_prefs = ExtensionPrefs::Create( in CreateExtensionPrefs() local
83 extension_prefs); in CreateExtensionPrefs()
84 return extension_prefs; in CreateExtensionPrefs()
Dnavigation_observer.cc73 ExtensionPrefs* extension_prefs = ExtensionPrefs::Get(profile_); in PromptToEnableExtensionIfNecessary() local
74 if (extension_prefs->DidExtensionEscalatePermissions(extension->id())) { in PromptToEnableExtensionIfNecessary()
Dchrome_extensions_browser_client.cc172 ExtensionPrefs* extension_prefs = ExtensionPrefs::Get(profile); in DidVersionUpdate() local
173 if (!extension_prefs) in DidVersionUpdate()
180 PrefService* pref_service = extension_prefs->pref_service(); in DidVersionUpdate()
Dextension_sync_service.h43 extensions::ExtensionPrefs* extension_prefs,
51 const extensions::ExtensionPrefs& extension_prefs() const { in extension_prefs() function
Dextension_assets_manager_chromeos.cc542 ExtensionPrefs* extension_prefs = ExtensionPrefs::Get(profile); in CleanUpExtension() local
543 if (!extension_prefs || extension_prefs->pref_service()->ReadOnly()) in CleanUpExtension()
547 extension_prefs->GetInstalledExtensionInfo(id); in CleanUpExtension()
549 info = extension_prefs->GetDelayedInstallInfo(id); in CleanUpExtension()
Dextension_util.cc124 ExtensionPrefs* extension_prefs = ExtensionPrefs::Get(context); in SetIsIncognitoEnabled() local
128 bool old_enabled = extension_prefs->IsIncognitoEnabled(extension_id); in SetIsIncognitoEnabled()
132 extension_prefs->SetIsIncognitoEnabled(extension_id, enabled); in SetIsIncognitoEnabled()
/external/chromium_org/extensions/browser/api/declarative/
Drules_cache_delegate.cc134 const ExtensionPrefs* extension_prefs = in ReadRulesForInstalledExtensions() local
146 extension_prefs->IsIncognitoEnabled((*i)->id()); in ReadRulesForInstalledExtensions()
203 const ExtensionScopedPrefs* extension_prefs = in GetDeclarativeRulesStored() local
207 if (extension_prefs->ReadPrefAsBoolean( in GetDeclarativeRulesStored()
223 ExtensionScopedPrefs* extension_prefs = ExtensionPrefs::Get(browser_context_); in SetDeclarativeRulesStored() local
224 extension_prefs->UpdateExtensionPref( in SetDeclarativeRulesStored()
/external/chromium_org/base/prefs/
Dpref_value_store.cc51 PrefStore* extension_prefs, in PrefValueStore() argument
61 InitPrefStore(EXTENSION_STORE, extension_prefs); in PrefValueStore()
75 PrefStore* extension_prefs, in CloneAndSpecialize() argument
86 if (!extension_prefs) in CloneAndSpecialize()
87 extension_prefs = GetPrefStore(EXTENSION_STORE); in CloneAndSpecialize()
98 managed_prefs, supervised_user_prefs, extension_prefs, command_line_prefs, in CloneAndSpecialize()
Dpref_service_factory.h37 void set_extension_prefs(const scoped_refptr<PrefStore>& extension_prefs) { in set_extension_prefs() argument
38 extension_prefs_ = extension_prefs; in set_extension_prefs()
Dpref_value_store.h51 PrefStore* extension_prefs,
63 PrefStore* extension_prefs,
/external/chromium_org/chrome/browser/extensions/api/commands/
Dcommand_service.cc96 ExtensionPrefs* extension_prefs, in MergeSuggestedKeyPrefs() argument
99 if (extension_prefs->ReadPrefAsDictionary(extension_id, in MergeSuggestedKeyPrefs()
107 extension_prefs->UpdateExtensionPref(extension_id, in MergeSuggestedKeyPrefs()
512 ExtensionPrefs* extension_prefs = ExtensionPrefs::Get(profile_); in AssignKeybindings() local
514 if (!InitialBindingsHaveBeenAssigned(extension_prefs, extension->id())) in AssignKeybindings()
515 SetInitialBindingsHaveBeenAssigned(extension_prefs, extension->id()); in AssignKeybindings()
654 ExtensionPrefs* extension_prefs = ExtensionPrefs::Get(profile_); in RemoveDefunctExtensionSuggestedCommandPrefs() local
656 extension_prefs->ReadPrefAsDictionary(extension->id(), in RemoveDefunctExtensionSuggestedCommandPrefs()
688 extension_prefs->UpdateExtensionPref(extension->id(), in RemoveDefunctExtensionSuggestedCommandPrefs()
700 ExtensionPrefs* extension_prefs = ExtensionPrefs::Get(profile_); in IsCommandShortcutUserModified() local
[all …]
/external/chromium_org/chrome/browser/extensions/api/preference/
Dpreference_api.cc373 extension_prefs()->pref_service()->FindPreference(pref_key.c_str()); in SetExtensionControlledPref()
385 ExtensionPrefs::ScopedDictionaryUpdate update(extension_prefs(), in SetExtensionControlledPref()
401 DCHECK(extension_prefs()->pref_service()->FindPreference(pref_key.c_str())) in RemoveExtensionControlledPref()
407 ExtensionPrefs::ScopedDictionaryUpdate update(extension_prefs(), in RemoveExtensionControlledPref()
422 DCHECK(extension_prefs()->pref_service()->FindPreference(pref_key.c_str())) in CanExtensionControlPref()
434 DCHECK(extension_prefs()->pref_service()->FindPreference(pref_key.c_str())) in DoesExtensionControlPref()
460 if (!extension_prefs()->extensions_disabled()) in Shutdown()
487 extension_prefs()->UpdateExtensionPref( in OnContentSettingChanged()
493 extension_prefs()->UpdateExtensionPref( in OnContentSettingChanged()
503 extension_prefs()->GetExtensions(&extension_ids); in ClearIncognitoSessionOnlyContentSettings()
[all …]
Dpreference_api.h88 virtual ExtensionPrefs* extension_prefs() = 0;
124 virtual ExtensionPrefs* extension_prefs() OVERRIDE;
/external/chromium_org/chrome/browser/extensions/api/declarative/
Ddeclarative_apitest.cc247 ExtensionPrefs* extension_prefs = ExtensionPrefs::Get(browser()->profile()); in IN_PROC_BROWSER_TEST_F() local
248 EXPECT_TRUE(extension_prefs->HasPrefForExtension(extension_id)); in IN_PROC_BROWSER_TEST_F()
255 EXPECT_FALSE(extension_prefs->HasPrefForExtension(extension_id)); in IN_PROC_BROWSER_TEST_F()
Drules_registry_with_cache_unittest.cc226 ExtensionPrefs* extension_prefs = env_.GetExtensionPrefs(); in TEST_F() local
244 extension_prefs->UpdateExtensionPref( in TEST_F()
248 extension_prefs->UpdateExtensionPref( in TEST_F()
297 ExtensionPrefs* extension_prefs = env_.GetExtensionPrefs(); in TEST_F() local
324 extension_prefs->UpdateExtensionPref( in TEST_F()
/external/chromium_org/chrome/browser/prefs/
Dchrome_pref_service_factory.cc400 const scoped_refptr<PrefStore>& extension_prefs, in PrepareFactory() argument
425 factory->set_extension_prefs(extension_prefs); in PrepareFactory()
475 const scoped_refptr<PrefStore>& extension_prefs, in CreateProfilePrefs() argument
503 extension_prefs, in CreateProfilePrefs()
/external/chromium_org/chrome/browser/media_galleries/
Dmedia_galleries_test_util.cc63 extensions::ExtensionPrefs* extension_prefs = in AddMediaGalleriesApp() local
65 base::FilePath path = extension_prefs->install_directory().AppendASCII(name); in AddMediaGalleriesApp()
76 extension_prefs->OnExtensionInstalled( in AddMediaGalleriesApp()

123