summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/sync_global_error.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/sync/sync_global_error.cc')
-rw-r--r--chrome/browser/sync/sync_global_error.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/sync/sync_global_error.cc b/chrome/browser/sync/sync_global_error.cc
index b6b0385..19e79fc 100644
--- a/chrome/browser/sync/sync_global_error.cc
+++ b/chrome/browser/sync/sync_global_error.cc
@@ -9,6 +9,7 @@
#include "chrome/browser/sync/profile_sync_service_observer.h"
#include "chrome/browser/sync/sync_ui_util.h"
#include "chrome/browser/ui/browser.h"
+#include "chrome/browser/ui/browser_commands.h"
#include "chrome/browser/ui/global_error_service.h"
#include "chrome/browser/ui/global_error_service_factory.h"
#include "chrome/browser/ui/webui/signin/login_ui_service.h"
@@ -59,7 +60,8 @@ void SyncGlobalError::ExecuteMenuItem(Browser* browser) {
#if defined(OS_CHROMEOS)
if (service_->GetAuthError().state() != AuthError::NONE) {
DLOG(INFO) << "Signing out the user to fix a sync error.";
- browser->ExecuteCommand(IDC_EXIT);
+ // TODO(beng): seems like this could just call browser::AttemptUserExit().
+ chrome::ExecuteCommand(browser, IDC_EXIT);
return;
}
#endif