Home
last modified time | relevance | path

Searched refs:ext_id (Results 1 – 23 of 23) sorted by relevance

/external/chromium_org/chrome/test/functional/
Dextensions.py35 def CheckExtensionVisible(self, ext_id): argument
37 return len(self._driver.find_elements_by_id(ext_id)) == 1
39 def SetEnabled(self, ext_id, enabled): argument
48 ext_id)
54 def SetAllowInIncognito(self, ext_id, allowed): argument
64 ext_id)
70 def SetAllowAccessFileURLs(self, ext_id, allowed): argument
80 ext_id)
203 ext_id = self.InstallExtension(crx_file_path)
204 extension = self._GetExtensionInfoById(self.GetExtensionsInfo(), ext_id)
[all …]
Dexecute_javascript.py40 ext_id = self.InstallExtension(dir_path)
43 extension = self._GetExtensionInfoById(self.GetExtensionsInfo(), ext_id)
/external/chromium/chrome/browser/extensions/
Dextension_pref_value_map.cc31 void ExtensionPrefValueMap::SetExtensionPref(const std::string& ext_id, in SetExtensionPref() argument
35 PrefValueMap* prefs = GetExtensionPrefValueMap(ext_id, incognito); in SetExtensionPref()
41 void ExtensionPrefValueMap::RemoveExtensionPref(const std::string& ext_id, in RemoveExtensionPref() argument
44 PrefValueMap* prefs = GetExtensionPrefValueMap(ext_id, incognito); in RemoveExtensionPref()
78 void ExtensionPrefValueMap::RegisterExtension(const std::string& ext_id, in RegisterExtension() argument
81 if (entries_.find(ext_id) != entries_.end()) in RegisterExtension()
82 UnregisterExtension(ext_id); in RegisterExtension()
83 entries_[ext_id] = new ExtensionEntry; in RegisterExtension()
84 entries_[ext_id]->install_time = install_time; in RegisterExtension()
85 entries_[ext_id]->enabled = is_enabled; in RegisterExtension()
[all …]
Dextension_pref_value_map.h71 void SetExtensionPref(const std::string& ext_id,
78 void RemoveExtensionPref(const std::string& ext_id,
105 void RegisterExtension(const std::string& ext_id,
110 void UnregisterExtension(const std::string& ext_id);
114 void SetExtensionState(const std::string& ext_id, bool is_enabled);
130 const PrefValueMap* GetExtensionPrefValueMap(const std::string& ext_id,
133 PrefValueMap* GetExtensionPrefValueMap(const std::string& ext_id,
Dextension_prefs.cc1385 for (ExtensionIdSet::const_iterator ext_id = extension_ids.begin(); in FixMissingPrefs() local
1386 ext_id != extension_ids.end(); ++ext_id) { in FixMissingPrefs()
1387 if (GetInstallTime(*ext_id) == base::Time()) { in FixMissingPrefs()
1389 << *ext_id << ". It was probably installed before setting " in FixMissingPrefs()
1393 ScopedExtensionPrefUpdate update(prefs_, *ext_id); in FixMissingPrefs()
1435 for (ExtensionIdSet::iterator ext_id = extension_ids.begin(); in InitPrefStore() local
1436 ext_id != extension_ids.end(); ++ext_id) { in InitPrefStore()
1437 std::string key = *ext_id + std::string(".") + kPrefPreferences; in InitPrefStore()
1447 for (ExtensionIdSet::iterator ext_id = extension_ids.begin(); in InitPrefStore() local
1448 ext_id != extension_ids.end(); ++ext_id) { in InitPrefStore()
[all …]
/external/chromium_org/chrome/browser/extensions/
Dextension_pref_value_map.cc48 void ExtensionPrefValueMap::SetExtensionPref(const std::string& ext_id, in SetExtensionPref() argument
52 PrefValueMap* prefs = GetExtensionPrefValueMap(ext_id, scope); in SetExtensionPref()
59 const std::string& ext_id, in RemoveExtensionPref() argument
62 PrefValueMap* prefs = GetExtensionPrefValueMap(ext_id, scope); in RemoveExtensionPref()
116 void ExtensionPrefValueMap::RegisterExtension(const std::string& ext_id, in RegisterExtension() argument
119 if (entries_.find(ext_id) == entries_.end()) { in RegisterExtension()
120 entries_[ext_id] = new ExtensionEntry; in RegisterExtension()
123 entries_[ext_id]->install_time = install_time; in RegisterExtension()
126 entries_[ext_id]->enabled = is_enabled; in RegisterExtension()
129 void ExtensionPrefValueMap::UnregisterExtension(const std::string& ext_id) { in UnregisterExtension() argument
[all …]
Dextension_pref_value_map.h86 void SetExtensionPref(const std::string& ext_id,
93 void RemoveExtensionPref(const std::string& ext_id,
131 void RegisterExtension(const std::string& ext_id,
136 void UnregisterExtension(const std::string& ext_id);
140 void SetExtensionState(const std::string& ext_id, bool is_enabled);
157 const std::string& ext_id,
161 const std::string& ext_id,
Dexternal_component_loader.cc27 std::string ext_id = GetEnhancedBookmarksExtensionId(); in StartLoading() local
28 if (!ext_id.empty()) { in StartLoading()
29 prefs_->SetString(ext_id + ".external_update_url", in StartLoading()
Dchrome_app_sorting.cc99 for (extensions::ExtensionIdList::const_iterator ext_id = in MigrateAppIndex() local
100 extension_ids.begin(); ext_id != extension_ids.end(); ++ext_id) { in MigrateAppIndex()
102 syncer::StringOrdinal page = GetPageOrdinal(*ext_id); in MigrateAppIndex()
104 *ext_id, in MigrateAppIndex()
110 DLOG(WARNING) << "Extension " << *ext_id in MigrateAppIndex()
119 SetPageOrdinal(*ext_id, page); in MigrateAppIndex()
121 *ext_id, kPrefPageIndexDeprecated, NULL); in MigrateAppIndex()
126 *ext_id, in MigrateAppIndex()
135 app_launches_to_convert[page][old_app_launch_index] = &*ext_id; in MigrateAppIndex()
138 *ext_id, kPrefAppLaunchIndexDeprecated, NULL); in MigrateAppIndex()
Dextension_prefs.cc868 for (ExtensionIdList::const_iterator ext_id = in MigratePermissions() local
869 extension_ids.begin(); ext_id != extension_ids.end(); ++ext_id) { in MigratePermissions()
875 const DictionaryValue* ext = GetExtensionPref(*ext_id); in MigratePermissions()
881 *ext_id, kPrefOldGrantedFullAccess, new ListValue()); in MigratePermissions()
898 UpdateExtensionPref(*ext_id, granted_apis, new_apis); in MigratePermissions()
912 *ext_id, explicit_hosts, hosts->DeepCopy()); in MigratePermissions()
915 UpdateExtensionPref(*ext_id, kPrefOldGrantedHosts, new ListValue()); in MigratePermissions()
922 for (ExtensionIdList::const_iterator ext_id = in MigrateDisableReasons() local
923 extension_ids.begin(); ext_id != extension_ids.end(); ++ext_id) { in MigrateDisableReasons()
925 if (ReadPrefAsInteger(*ext_id, kDeprecatedPrefDisableReason, &value)) { in MigrateDisableReasons()
[all …]
/external/chromium_org/chrome/browser/extensions/api/content_settings/
Dcontent_settings_store.cc94 const std::string& ext_id, in SetExtensionContentSetting() argument
103 OriginIdentifierValueMap* map = GetValueMap(ext_id, scope); in SetExtensionContentSetting()
116 NotifyOfContentSettingChanged(ext_id, in SetExtensionContentSetting()
121 const std::string& ext_id, in RegisterExtension() argument
125 ExtensionEntryMap::iterator i = FindEntry(ext_id); in RegisterExtension()
134 entry->id = ext_id; in RegisterExtension()
139 const std::string& ext_id) { in UnregisterExtension() argument
144 ExtensionEntryMap::iterator i = FindEntry(ext_id); in UnregisterExtension()
155 NotifyOfContentSettingChanged(ext_id, false); in UnregisterExtension()
157 NotifyOfContentSettingChanged(ext_id, true); in UnregisterExtension()
[all …]
Dcontent_settings_store.h67 const std::string& ext_id,
76 void ClearContentSettingsForExtension(const std::string& ext_id,
94 void RegisterExtension(const std::string& ext_id,
99 void UnregisterExtension(const std::string& ext_id);
103 void SetExtensionState(const std::string& ext_id, bool is_enabled);
121 const std::string& ext_id,
125 const std::string& ext_id,
133 ExtensionEntryMap::iterator FindEntry(const std::string& ext_id);
134 ExtensionEntryMap::const_iterator FindEntry(const std::string& ext_id) const;
Dcontent_settings_store_unittest.cc84 void RegisterExtension(const std::string& ext_id) { in RegisterExtension() argument
85 store_->RegisterExtension(ext_id, timer_.GetNext(), true); in RegisterExtension()
112 std::string ext_id("my_extension"); in TEST_F() local
113 RegisterExtension(ext_id); in TEST_F()
126 EXPECT_CALL(observer, OnContentSettingChanged(ext_id, false)); in TEST_F()
127 store()->SetExtensionContentSetting(ext_id, in TEST_F()
165 EXPECT_CALL(observer, OnContentSettingChanged(ext_id, false)); in TEST_F()
166 store()->UnregisterExtension(ext_id); in TEST_F()
199 std::string ext_id("my_extension"); in TEST_F() local
200 RegisterExtension(ext_id); in TEST_F()
[all …]
/external/chromium_org/chrome/renderer/extensions/
Dapi_activity_logger.cc46 std::string ext_id = *v8::String::Utf8Value(args[0]); in LogInternal() local
72 new ExtensionHostMsg_AddAPIActionToActivityLog(ext_id, params)); in LogInternal()
75 new ExtensionHostMsg_AddEventToActivityLog(ext_id, params)); in LogInternal()
/external/chromium_org/chrome/browser/bookmarks/
Denhanced_bookmarks_features.cc16 std::string ext_id = GetEnhancedBookmarksExtensionId(); in IsEnhancedBookmarksExperimentEnabled() local
20 return (feature && feature->IsIdInWhitelist(ext_id)); in IsEnhancedBookmarksExperimentEnabled()
/external/chromium_org/chrome/browser/history/
Ddownload_row.cc35 const std::string& ext_id, in DownloadRow() argument
52 by_ext_id(ext_id), in DownloadRow()
Ddownload_row.h40 const std::string& ext_id,
/external/chromium_org/chrome/browser/chromeos/input_method/
Dinput_method_manager_impl_unittest.cc996 const std::string ext_id = in TEST_F() local
999 ext_id, in TEST_F()
1006 IBusBridge::Get()->SetEngineHandler(ext_id, mock_engine_handler_.get()); in TEST_F()
1081 const std::string ext_id = extension_ime_util::GetComponentInputMethodID( in TEST_F() local
1085 ids.push_back(ext_id); in TEST_F()
1088 manager_->ChangeInputMethod(ext_id); in TEST_F()
1091 EXPECT_EQ(ext_id, manager_->GetCurrentInputMethod().id()); in TEST_F()
1119 const std::string ext_id = extension_ime_util::GetComponentInputMethodID( in TEST_F() local
1123 ids.push_back(ext_id); in TEST_F()
1126 EXPECT_EQ(ext_id, manager_->GetCurrentInputMethod().id()); in TEST_F()
/external/chromium_org/google_apis/gaia/
Doauth2_mint_token_flow_unittest.cc163 std::string ext_id = "ext1"; in CreateFlow() local
168 OAuth2MintTokenFlow::Parameters(rt, ext_id, client_id, scopes, mode))); in CreateFlow()
/external/chromium_org/chrome/browser/resources/google_now/
Dutility_unittest.gtestjs31 '(chrome-extension://ext_id/utility.js:29:15)\n' +
57 file: '//ext_id/utility.js',
60 'at buildErrorWithMessageForServer (chrome-extension://ext_id/util' +
99 'at chrome-extension://ext_id/background.js:444:11\n ' +
100 'at chrome-extension://ext_id/utility.js:509:7';
120 file: '//ext_id/background.js',
123 'at chrome-extension://ext_id/background.js:444:11\n ' +
124 'at chrome-extension://ext_id/utility.js:509:7'
/external/chromium_org/chrome/browser/profile_resetter/
Dprofile_resetter_unittest.cc717 std::string ext_id = ext->id(); in TEST_F() local
718 ReplaceString(&master_prefs, "placeholder_for_id", ext_id); in TEST_F()
757 1, std::make_pair(ext_id, "example")), in TEST_F()
/external/chromium_org/chrome/browser/extensions/api/downloads/
Ddownloads_api.h335 const std::string& ext_id,
Ddownloads_api.cc1668 const std::string& ext_id, in DetermineFilename() argument
1685 Fault(data->DeterminerAlreadyReported(ext_id), in DetermineFilename()
1699 profile, ext_id, filename, conflict_action), in DetermineFilename()