Index: chrome/browser/banners/app_banner_debug_log.cc |
diff --git a/chrome/browser/banners/app_banner_debug_log.cc b/chrome/browser/banners/app_banner_debug_log.cc |
index e1b06f91b5a42ee79b917a32db5ae27d3406a3d8..4d9a0cded747dee07f655bd9eb59cfc9175be698 100644 |
--- a/chrome/browser/banners/app_banner_debug_log.cc |
+++ b/chrome/browser/banners/app_banner_debug_log.cc |
@@ -44,15 +44,19 @@ const char kIgnoredIdsDoNotMatch[] = |
"manifest, but they do not match"; |
void OutputDeveloperNotShownMessage(content::WebContents* web_contents, |
- const std::string& message) { |
- OutputDeveloperDebugMessage(web_contents, "not shown: " + message); |
+ const std::string& message, |
+ bool is_debug_mode) { |
+ OutputDeveloperDebugMessage(web_contents, "not shown: " + message, |
+ is_debug_mode); |
} |
void OutputDeveloperDebugMessage(content::WebContents* web_contents, |
- const std::string& message) { |
+ const std::string& message, |
+ bool is_debug_mode) { |
std::string log_message = "App banner " + message; |
- if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
- switches::kBypassAppBannerEngagementChecks) && |
+ if ((is_debug_mode || |
+ base::CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kBypassAppBannerEngagementChecks)) && |
web_contents) { |
web_contents->GetMainFrame()->AddMessageToConsole( |
content::CONSOLE_MESSAGE_LEVEL_DEBUG, log_message); |