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

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

Issue 2155293002: Show the Cast toolbar icon ephemerally when Cast is in use (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 5 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 3a3c1a3ef3190cc7b6d6057c893c00aed843f263..432de49aace84942d24d28a8c1ed47c77d3ba443 100644
--- a/chrome/browser/extensions/component_migration_helper.cc
+++ b/chrome/browser/extensions/component_migration_helper.cc
@@ -9,6 +9,7 @@
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/extension_system_impl.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/ui/toolbar/component_toolbar_actions_factory.h"
#include "chrome/common/pref_names.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/pref_service.h"
@@ -134,6 +135,11 @@ void ComponentMigrationHelper::OnExtensionReady(
UnloadExtension(extension_id);
SetComponentActionPref(component_action_id, true);
+ if (component_action_id ==
+ ComponentToolbarActionsFactory::kMediaRouterActionId)
msw 2016/07/26 19:59:31 nit: add curly braces.
takumif 2016/07/28 20:04:10 Done.
+ pref_service_->SetBoolean(prefs::kMediaRouterAlwaysShowActionIcon,
+ true);
+
if (!delegate_->HasComponentAction(component_action_id))
delegate_->AddComponentAction(component_action_id);
}

Powered by Google App Engine
This is Rietveld 408576698