Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: chrome/browser/extensions/extension_web_ui.cc

Issue 11660016: Move the parsing of "chrome_url_overrides" out of Extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: patch-rebased Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/extension_web_ui.h ('k') | chrome/browser/extensions/manifest_url_parser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_web_ui.cc
diff --git a/chrome/browser/extensions/extension_web_ui.cc b/chrome/browser/extensions/extension_web_ui.cc
index e93bcbc9fac48347eec724d91034387437686fdb..cdb51646774759be5de8e09280878adc782eb773 100644
--- a/chrome/browser/extensions/extension_web_ui.cc
+++ b/chrome/browser/extensions/extension_web_ui.cc
@@ -38,6 +38,7 @@
using content::WebContents;
using extensions::Extension;
+using extensions::URLOverrides;
namespace {
@@ -303,7 +304,7 @@ bool ExtensionWebUI::HandleChromeURLOverrideReverse(
// static
void ExtensionWebUI::RegisterChromeURLOverrides(
- Profile* profile, const Extension::URLOverrideMap& overrides) {
+ Profile* profile, const URLOverrides::URLOverrideMap& overrides) {
if (overrides.empty())
return;
@@ -313,7 +314,7 @@ void ExtensionWebUI::RegisterChromeURLOverrides(
// For each override provided by the extension, add it to the front of
// the override list if it's not already in the list.
- Extension::URLOverrideMap::const_iterator iter = overrides.begin();
+ URLOverrides::URLOverrideMap::const_iterator iter = overrides.begin();
for (; iter != overrides.end(); ++iter) {
const std::string& key = iter->first;
ListValue* page_overrides;
@@ -381,13 +382,13 @@ void ExtensionWebUI::UnregisterChromeURLOverride(const std::string& page,
// static
void ExtensionWebUI::UnregisterChromeURLOverrides(
- Profile* profile, const Extension::URLOverrideMap& overrides) {
+ Profile* profile, const URLOverrides::URLOverrideMap& overrides) {
if (overrides.empty())
return;
PrefService* prefs = profile->GetPrefs();
DictionaryPrefUpdate update(prefs, kExtensionURLOverrides);
DictionaryValue* all_overrides = update.Get();
- Extension::URLOverrideMap::const_iterator iter = overrides.begin();
+ URLOverrides::URLOverrideMap::const_iterator iter = overrides.begin();
for (; iter != overrides.end(); ++iter) {
const std::string& page = iter->first;
ListValue* page_overrides;
« no previous file with comments | « chrome/browser/extensions/extension_web_ui.h ('k') | chrome/browser/extensions/manifest_url_parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698