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

Unified Diff: chrome/common/extensions/manifest_url_handler.cc

Issue 12253022: Manifest handler for all keys background-related. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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
Index: chrome/common/extensions/manifest_url_handler.cc
diff --git a/chrome/common/extensions/manifest_url_handler.cc b/chrome/common/extensions/manifest_url_handler.cc
index e1f158ce82c50b9fa7851e76402cace9f7847a72..1d3d14c93604d147dbbaf39e9418f704e6c9db8b 100644
--- a/chrome/common/extensions/manifest_url_handler.cc
+++ b/chrome/common/extensions/manifest_url_handler.cc
@@ -103,6 +103,10 @@ bool DevToolsPageHandler::Parse(Extension* extension, string16* error) {
return true;
}
+const std::vector<std::string> DevToolsPageHandler::Keys() const {
+ return SingleKey(keys::kDevToolsPage);
+}
+
HomepageURLHandler::HomepageURLHandler() {
}
@@ -130,6 +134,10 @@ bool HomepageURLHandler::Parse(Extension* extension, string16* error) {
return true;
}
+const std::vector<std::string> HomepageURLHandler::Keys() const {
+ return SingleKey(keys::kHomepageURL);
+}
+
UpdateURLHandler::UpdateURLHandler() {
}
@@ -158,6 +166,10 @@ bool UpdateURLHandler::Parse(Extension* extension, string16* error) {
return true;
}
+const std::vector<std::string> UpdateURLHandler::Keys() const {
+ return SingleKey(keys::kUpdateURL);
+}
+
OptionsPageHandler::OptionsPageHandler() {
}
@@ -198,6 +210,10 @@ bool OptionsPageHandler::Parse(Extension* extension, string16* error) {
return true;
}
+const std::vector<std::string> OptionsPageHandler::Keys() const {
+ return SingleKey(keys::kOptionsPage);
+}
+
URLOverridesHandler::URLOverridesHandler() {
}
@@ -263,4 +279,8 @@ bool URLOverridesHandler::Parse(Extension* extension, string16* error) {
return true;
}
+const std::vector<std::string> URLOverridesHandler::Keys() const {
+ return SingleKey(keys::kChromeURLOverrides);
+}
+
} // namespace extensions
« no previous file with comments | « chrome/common/extensions/manifest_url_handler.h ('k') | chrome/common/extensions/permissions/permission_set_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698