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

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

Issue 2294973002: Create MediaRouterActionController and MediaRouterUIService (Closed)
Patch Set: Add MediaRouterUIService (KeyedService) 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
Index: chrome/browser/extensions/component_migration_helper.cc
diff --git a/chrome/browser/extensions/component_migration_helper.cc b/chrome/browser/extensions/component_migration_helper.cc
index 7de2caa9773e3e49033483107317284b888d23b4..7e42c45d350bc480b92d31cdb6cc891ae2f318cb 100644
--- a/chrome/browser/extensions/component_migration_helper.cc
+++ b/chrome/browser/extensions/component_migration_helper.cc
@@ -139,6 +139,16 @@ void ComponentMigrationHelper::OnExtensionReady(
}
}
+bool ComponentMigrationHelper::GetComponentActionPref(
mark a. foltz 2016/09/13 18:23:04 - Please refactor @L80 to call this method. - DCHE
takumif 2016/09/14 04:00:51 Done. DCHECKing here means component actions can o
+ const std::string& component_action_id) const {
+ const base::DictionaryValue* migration_pref = pref_service_->GetDictionary(
+ ::prefs::kToolbarMigratedComponentActionStatus);
+ bool component_action_pref = false;
+
+ migration_pref->GetBoolean(component_action_id, &component_action_pref);
mark a. foltz 2016/09/13 18:23:04 What does this return if there is no pre-existing
takumif 2016/09/14 04:00:51 GetBoolean returns false and not touch |component_
+ return component_action_pref;
+}
+
void ComponentMigrationHelper::SetComponentActionPref(
const std::string& component_action_id,
bool enabled) {

Powered by Google App Engine
This is Rietveld 408576698