Chromium Code Reviews| 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(); |
| } |