| 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 20191775e0f685b8b428e6080b36d929920b3074..ac84f365434e411852ea1e4b891ffce48e15ecbb 100644
|
| --- a/chrome/browser/extensions/extension_toolbar_model.cc
|
| +++ b/chrome/browser/extensions/extension_toolbar_model.cc
|
| @@ -32,6 +32,7 @@
|
| #include "extensions/common/extension.h"
|
| #include "extensions/common/extension_set.h"
|
| #include "extensions/common/feature_switch.h"
|
| +#include "extensions/common/manifest_constants.h"
|
| #include "extensions/common/one_shot_event.h"
|
|
|
| namespace extensions {
|
| @@ -742,4 +743,15 @@ void ExtensionToolbarModel::StopHighlighting() {
|
| }
|
| }
|
|
|
| +bool ExtensionToolbarModel::RedesignIsShowingNewIcons() const {
|
| + for (const scoped_refptr<const Extension>& extension : toolbar_items_) {
|
| + // Without the redesign, we only show extensions with browser actions.
|
| + // Any extension without a browser action is an indication that we're
|
| + // showing something new.
|
| + if (!extension->manifest()->HasKey(manifest_keys::kBrowserAction))
|
| + return true;
|
| + }
|
| + return false;
|
| +}
|
| +
|
| } // namespace extensions
|
|
|