OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/sync/sync_global_error.h" | 5 #include "chrome/browser/sync/sync_global_error.h" |
6 | 6 |
7 #include "chrome/app/chrome_command_ids.h" | 7 #include "chrome/app/chrome_command_ids.h" |
8 #include "chrome/browser/sync/profile_sync_service.h" | 8 #include "chrome/browser/sync/profile_sync_service.h" |
9 #include "chrome/browser/sync/profile_sync_service_observer.h" | 9 #include "chrome/browser/sync/profile_sync_service_observer.h" |
10 #include "chrome/browser/sync/sync_ui_util.h" | 10 #include "chrome/browser/sync/sync_ui_util.h" |
11 #include "chrome/browser/ui/browser.h" | 11 #include "chrome/browser/ui/browser.h" |
12 #include "chrome/browser/ui/browser_commands.h" | 12 #include "chrome/browser/ui/browser_commands.h" |
13 #include "chrome/browser/ui/global_error/global_error_service.h" | 13 #include "chrome/browser/ui/global_error/global_error_service.h" |
14 #include "chrome/browser/ui/global_error/global_error_service_factory.h" | 14 #include "chrome/browser/ui/global_error/global_error_service_factory.h" |
15 #include "chrome/browser/ui/webui/signin/login_ui_service.h" | 15 #include "chrome/browser/ui/webui/signin/login_ui_service.h" |
16 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h" | 16 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h" |
17 #include "chrome/common/net/gaia/google_service_auth_error.h" | 17 #include "google_apis/gaia/google_service_auth_error.h" |
18 #include "grit/chromium_strings.h" | 18 #include "grit/chromium_strings.h" |
19 #include "grit/generated_resources.h" | 19 #include "grit/generated_resources.h" |
20 #include "ui/base/l10n/l10n_util.h" | 20 #include "ui/base/l10n/l10n_util.h" |
21 | 21 |
22 typedef GoogleServiceAuthError AuthError; | 22 typedef GoogleServiceAuthError AuthError; |
23 | 23 |
24 SyncGlobalError::SyncGlobalError(ProfileSyncService* service, | 24 SyncGlobalError::SyncGlobalError(ProfileSyncService* service, |
25 SigninManager* signin) | 25 SigninManager* signin) |
26 : service_(service), | 26 : service_(service), |
27 signin_(signin) { | 27 signin_(signin) { |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 if (profile) { | 124 if (profile) { |
125 GlobalErrorServiceFactory::GetForProfile( | 125 GlobalErrorServiceFactory::GetForProfile( |
126 profile)->NotifyErrorsChanged(this); | 126 profile)->NotifyErrorsChanged(this); |
127 } | 127 } |
128 } | 128 } |
129 } | 129 } |
130 | 130 |
131 bool SyncGlobalError::HasCustomizedSyncMenuItem() { | 131 bool SyncGlobalError::HasCustomizedSyncMenuItem() { |
132 return !menu_label_.empty(); | 132 return !menu_label_.empty(); |
133 } | 133 } |
OLD | NEW |