Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5607)

Unified Diff: chrome/browser/ui/views/toolbar_view.cc

Issue 15969017: Warn by default when certain DLL conflicts exist on XP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ready for try servers Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/toolbar_view.cc
diff --git a/chrome/browser/ui/views/toolbar_view.cc b/chrome/browser/ui/views/toolbar_view.cc
index af414bde030672a3438e2160e4a51fbf3855d741..efe5bcf7c669a5f0b1670396a735011b208bde84 100644
--- a/chrome/browser/ui/views/toolbar_view.cc
+++ b/chrome/browser/ui/views/toolbar_view.cc
@@ -60,8 +60,10 @@
#include "ui/views/window/non_client_view.h"
#if defined(OS_WIN)
+#include "base/win/windows_version.h"
#include "chrome/browser/enumerate_modules_model_win.h"
#include "chrome/browser/ui/views/critical_notification_bubble_view.h"
+#include "chrome/browser/ui/views/extensions/conflicting_module_view_win.h"
#if !defined(USE_AURA)
#include "chrome/browser/ui/views/app_menu_button_win.h"
#endif
@@ -175,6 +177,11 @@ ToolbarView::ToolbarView(Browser* browser)
#if defined(OS_WIN)
registrar_.Add(this, chrome::NOTIFICATION_CRITICAL_UPGRADE_INSTALLED,
content::NotificationService::AllSources());
+ // if (base::win::GetVersion() == base::win::VERSION_XP) { // for checkin.
+ if (base::win::GetVersion() == base::win::VERSION_WIN7) { // for testing.
+ registrar_.Add(this, chrome::NOTIFICATION_MODULE_LIST_ENUMERATED,
+ content::NotificationService::AllSources());
+ }
#endif
registrar_.Add(this,
chrome::NOTIFICATION_MODULE_INCOMPATIBILITY_BADGE_CHANGE,
@@ -461,6 +468,7 @@ void ToolbarView::Observe(int type,
case chrome::NOTIFICATION_UPGRADE_RECOMMENDED:
case chrome::NOTIFICATION_MODULE_INCOMPATIBILITY_BADGE_CHANGE:
case chrome::NOTIFICATION_GLOBAL_ERRORS_CHANGED:
+ case chrome::NOTIFICATION_MODULE_LIST_ENUMERATED:
UpdateAppMenuState();
break;
case chrome::NOTIFICATION_OUTDATED_INSTALL:
@@ -788,8 +796,12 @@ void ToolbarView::UpdateWrenchButtonSeverity() {
}
if (ShouldShowIncompatibilityWarning()) {
- if (!was_showing)
+ if (!was_showing) {
content::RecordAction(UserMetricsAction("ConflictBadge"));
+#if defined(OS_WIN)
+ ConflictingModuleView::MaybeShow(browser_, app_menu_);
+#endif
+ }
app_menu_->SetSeverity(WrenchIconPainter::SEVERITY_MEDIUM, true);
incompatibility_badge_showing = true;
return;

Powered by Google App Engine
This is Rietveld 408576698