| Index: chrome/browser/extensions/extension_toolbar_model.cc
|
| diff --git a/chrome/browser/extensions/extension_toolbar_model.cc b/chrome/browser/extensions/extension_toolbar_model.cc
|
| index e5a05cb17437b52e0e08151799467d5e9866e602..c7062e82501029f3c0ca3181ca1d0433f644bf96 100644
|
| --- a/chrome/browser/extensions/extension_toolbar_model.cc
|
| +++ b/chrome/browser/extensions/extension_toolbar_model.cc
|
| @@ -318,7 +318,8 @@ void ExtensionToolbarModel::AddExtension(const Extension* extension) {
|
| // extensions go at their previous position.
|
| size_t new_index = 0;
|
| if (is_new_extension) {
|
| - new_index = visible_icon_count();
|
| + new_index = Manifest::IsComponentLocation(extension->location()) ?
|
| + 0 : visible_icon_count();
|
| // For the last-known position, we use the index of the extension that is
|
| // just before this extension, plus one. (Note that this isn't the same
|
| // as new_index + 1, because last_known_positions_ can include disabled
|
|
|