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

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

Issue 2294973002: Create MediaRouterActionController and MediaRouterUIService (Closed)
Patch Set: Modify BUILD.gn files, rebase Created 4 years, 3 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 | « no previous file | chrome/browser/extensions/component_migration_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/component_migration_helper.h
diff --git a/chrome/browser/extensions/component_migration_helper.h b/chrome/browser/extensions/component_migration_helper.h
index 66f938ed4a1a7f2603d056981158b9995abea3a8..2e78b5ee736466286d45311fecdfeb0339a9c6cc 100644
--- a/chrome/browser/extensions/component_migration_helper.h
+++ b/chrome/browser/extensions/component_migration_helper.h
@@ -107,11 +107,14 @@ class ComponentMigrationHelper : public ExtensionRegistryObserver {
void OnExtensionReady(content::BrowserContext* browser_context,
const Extension* extension) override;
- protected:
- // Protected for unit testing.
+ // Gets and sets the preference for whether to put the component action with
+ // the given ID on the toolbar (or in the overflow menu).
+ // GetComponentActionPref() returns false if the pref has not been set.
+ bool GetComponentActionPref(const std::string& component_action_id) const;
void SetComponentActionPref(const std::string& component_action_id,
bool enabled);
+ protected:
// A set of component action ids whose features are currently enabled.
// Protected for unit testing.
std::set<std::string> enabled_actions_;
« no previous file with comments | « no previous file | chrome/browser/extensions/component_migration_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698