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

Unified Diff: chrome/browser/extensions/settings_api_helpers.h

Issue 320633002: Add an extension override bubble and warning box for proxy extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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/browser/extensions/settings_api_helpers.h
diff --git a/chrome/browser/extensions/settings_api_helpers.h b/chrome/browser/extensions/settings_api_helpers.h
index db2ba36022a0ba95715c036f5336cfac6ef1e035..866fbb14997dfcdae23052a55e2deac57f8d7b5b 100644
--- a/chrome/browser/extensions/settings_api_helpers.h
+++ b/chrome/browser/extensions/settings_api_helpers.h
@@ -24,25 +24,35 @@ const extensions::SettingsOverrides* FindOverridingExtension(
const Extension** extension);
// Returns which extension is overriding the homepage in a given
-// |browser_context|. |home_page_url|, if non-NULL, will contain the home_page
-// value the extension has set.
-const Extension* OverridesHomepage(content::BrowserContext* browser_context,
- GURL* home_page_url);
+// |browser_context| or NULL if no extension is overriding the homepage.
+// |home_page_url|, if non-NULL, will contain the home_page value the extension
+// has set.
+const Extension* GetExtensionOverridingHomepage(
+ content::BrowserContext* browser_context,
+ GURL* home_page_url);
// Returns which extension is overriding the homepage in a given
-// |browser_context|. |startup_pages|, if non-NULL, will contain the vector of
-// startup page URLs the extension has set.
-const Extension* OverridesStartupPages(content::BrowserContext* browser_context,
- std::vector<GURL>* startup_pages);
+// |browser_context| or NULL if no extension is overriding the startup pages.
+// |startup_pages|, if non-NULL, will contain the vector of startup page URLs
+// the extension has set.
+const Extension* GetExtensionOverridingStartupPages(
+ content::BrowserContext* browser_context,
+ std::vector<GURL>* startup_pages);
// Returns which extension is overriding the search engine in a given
-// |browser_context|. |search_provider|, if non-NULL, will contain the search
-// provider the extension has set.
-const Extension* OverridesSearchEngine(
+// |browser_context| or NULL if no extension is overriding the search engine.
+// |search_provider|, if non-NULL, will contain the search provider the
+// extension has set.
+const Extension* GetExtensionOverridingSearchEngine(
content::BrowserContext* browser_context,
api::manifest_types::ChromeSettingsOverrides::Search_provider*
search_provider);
+// Returns which extension is overriding the proxy in a given |browser_context|
+// or NULL if no extension is overriding the proxy.
+const Extension* GetExtensionOverridingProxy(
+ content::BrowserContext* browser_context);
+
} // namespace extensions
#endif // CHROME_BROWSER_EXTENSIONS_SETTINGS_API_HELPERS_H_
« no previous file with comments | « chrome/browser/extensions/settings_api_bubble_controller.cc ('k') | chrome/browser/extensions/settings_api_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698