Index: chrome/browser/ui/views/toolbar/toolbar_view.cc |
diff --git a/chrome/browser/ui/views/toolbar/toolbar_view.cc b/chrome/browser/ui/views/toolbar/toolbar_view.cc |
index 5f1b2a608f0a7b92ac4182509a32659576a85043..14fa65220d89ae9c6f8f218b5f91623fe0d13fec 100644 |
--- a/chrome/browser/ui/views/toolbar/toolbar_view.cc |
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc |
@@ -79,7 +79,6 @@ |
#endif |
#if !defined(OS_CHROMEOS) |
-#include "chrome/browser/signin/signin_global_error_factory.h" |
#include "chrome/browser/sync/sync_global_error_factory.h" |
#endif |
@@ -220,18 +219,15 @@ void ToolbarView::Init() { |
LoadImages(); |
// Start global error services now so we badge the menu correctly. |
-#if !defined(OS_CHROMEOS) |
+#if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) |
if (!HasAshShell()) { |
- SigninGlobalErrorFactory::GetForProfile(browser_->profile()); |
-#if !defined(OS_ANDROID) |
SyncGlobalErrorFactory::GetForProfile(browser_->profile()); |
-#endif |
} |
+#endif |
#if defined(OS_WIN) |
RecoveryInstallGlobalErrorFactory::GetForProfile(browser_->profile()); |
#endif |
-#endif // OS_CHROMEOS |
// Add any necessary badges to the menu item based on the system state. |
// Do this after |app_menu_| has been added as a bubble may be shown that |