Index: chrome/browser/extensions/dev_mode_bubble_controller.cc |
diff --git a/chrome/browser/extensions/dev_mode_bubble_controller.cc b/chrome/browser/extensions/dev_mode_bubble_controller.cc |
index d6914e503a83524f100fc598604e207161009ae6..643aa8654cf2c80eca1ffee5f24600976bbc2eec 100644 |
--- a/chrome/browser/extensions/dev_mode_bubble_controller.cc |
+++ b/chrome/browser/extensions/dev_mode_bubble_controller.cc |
@@ -77,7 +77,8 @@ bool DevModeBubbleDelegate::ShouldIncludeExtension( |
const Extension* extension = service_->GetExtensionById(extension_id, false); |
if (!extension) |
return false; |
- return DevModeBubbleController::IsDevModeExtension(extension); |
+ return (extension->location() == Manifest::UNPACKED || |
+ extension->location() == Manifest::COMMAND_LINE); |
} |
void DevModeBubbleDelegate::AcknowledgeExtension( |
@@ -154,17 +155,6 @@ void DevModeBubbleController::ClearProfileListForTesting() { |
g_shown_for_profiles.Get().clear(); |
} |
-// static |
-bool DevModeBubbleController::IsDevModeExtension( |
- const Extension* extension) { |
- if (!FeatureSwitch::force_dev_mode_highlighting()->IsEnabled()) { |
- if (chrome::VersionInfo::GetChannel() < chrome::VersionInfo::CHANNEL_BETA) |
- return false; |
- } |
- return extension->location() == Manifest::UNPACKED || |
- extension->location() == Manifest::COMMAND_LINE; |
-} |
- |
DevModeBubbleController::DevModeBubbleController(Profile* profile) |
: ExtensionMessageBubbleController(new DevModeBubbleDelegate(profile), |
profile), |