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

Unified Diff: chrome/browser/ui/views/toolbar/browser_actions_container.cc

Issue 451193003: Remove deprecated kBrowserActionContainerWidth pref (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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/ui/views/toolbar/browser_actions_container.cc
diff --git a/chrome/browser/ui/views/toolbar/browser_actions_container.cc b/chrome/browser/ui/views/toolbar/browser_actions_container.cc
index f60019582a6e6cc9f2f15e6dbf4e9c491df87c06..1aaefa35875a59a24bb5104aa8d3f752c0c9bd54 100644
--- a/chrome/browser/ui/views/toolbar/browser_actions_container.cc
+++ b/chrome/browser/ui/views/toolbar/browser_actions_container.cc
@@ -195,16 +195,6 @@ void BrowserActionsContainer::Init() {
// We wait to set the container width until now so that the chevron images
// will be loaded. The width calculation needs to know the chevron size.
- if (model_ &&
- !profile_->GetPrefs()->HasPrefPath(
- extensions::pref_names::kToolbarSize)) {
- // Migration code to the new VisibleIconCount pref.
- // TODO(mpcomplete): remove this after users are upgraded to 5.0.
- int predefined_width = profile_->GetPrefs()->GetInteger(
- extensions::pref_names::kBrowserActionContainerWidth);
- if (predefined_width != 0)
- model_->SetVisibleIconCount(WidthToIconCount(predefined_width));
- }
Peter Kasting 2014/08/12 19:04:49 Same comment.
Devlin 2014/08/12 19:18:19 Done.
if (model_ && model_->extensions_initialized())
SetContainerWidth();
}

Powered by Google App Engine
This is Rietveld 408576698