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

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

Issue 219593002: Add unit test for the Settings API Bubble. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced Created 6 years, 9 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/ui/views/settings_api_bubble_helper_views.h b/chrome/browser/extensions/settings_api_helpers.h
similarity index 65%
copy from chrome/browser/ui/views/settings_api_bubble_helper_views.h
copy to chrome/browser/extensions/settings_api_helpers.h
index a36a8064a6bc2edb907929c1c90a0afe91a62695..db2ba36022a0ba95715c036f5336cfac6ef1e035 100644
--- a/chrome/browser/ui/views/settings_api_bubble_helper_views.h
+++ b/chrome/browser/extensions/settings_api_helpers.h
@@ -2,34 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_VIEWS_SETTINGS_API_BUBBLE_HELPER_VIEWS_H_
-#define CHROME_BROWSER_UI_VIEWS_SETTINGS_API_BUBBLE_HELPER_VIEWS_H_
+#ifndef CHROME_BROWSER_EXTENSIONS_SETTINGS_API_HELPERS_H_
+#define CHROME_BROWSER_EXTENSIONS_SETTINGS_API_HELPERS_H_
#include "chrome/common/extensions/manifest_handlers/settings_overrides_handler.h"
-struct AutocompleteMatch;
-class Browser;
-class Profile;
-
namespace content {
class BrowserContext;
-class WebContents;
}
namespace extensions {
-// Shows a bubble notifying the user that the homepage is controlled by an
-// extension. This bubble is shown only on the first use of the Home button
-// after the controlling extension takes effect.
-void MaybeShowExtensionControlledHomeNotification(Browser* browser);
-
-// Shows a bubble notifying the user that the search engine is controlled by an
-// extension. This bubble is shown only on the first search after the
-// controlling extension takes effect.
-void MaybeShowExtensionControlledSearchNotification(
- Profile* profile,
- content::WebContents* web_contents,
- const AutocompleteMatch& match);
+struct SettingsOverrides;
// Find which |extension| is overriding a particular |type| of setting. Returns
// the SettingsOverride object, or NULL if no |extension| is overriding that
@@ -61,4 +45,4 @@ const Extension* OverridesSearchEngine(
} // namespace extensions
-#endif // CHROME_BROWSER_UI_VIEWS_SETTINGS_API_BUBBLE_HELPER_VIEWS_H_
+#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