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/sync_ui_util.h" | 8 #include "chrome/browser/sync/sync_ui_util.h" |
9 #include "chrome/browser/ui/browser.h" | 9 #include "chrome/browser/ui/browser.h" |
10 #include "chrome/browser/ui/browser_commands.h" | 10 #include "chrome/browser/ui/browser_commands.h" |
11 #include "chrome/browser/ui/chrome_pages.h" | 11 #include "chrome/browser/ui/chrome_pages.h" |
12 #include "chrome/browser/ui/global_error/global_error_service.h" | 12 #include "chrome/browser/ui/global_error/global_error_service.h" |
13 #include "chrome/browser/ui/webui/signin/login_ui_service.h" | 13 #include "chrome/browser/ui/webui/signin/login_ui_service.h" |
14 #include "chrome/common/url_constants.h" | 14 #include "chrome/common/url_constants.h" |
15 #include "chrome/grit/generated_resources.h" | 15 #include "chrome/grit/generated_resources.h" |
16 #include "components/browser_sync/browser/profile_sync_service.h" | 16 #include "components/browser_sync/profile_sync_service.h" |
17 #include "components/signin/core/common/profile_management_switches.h" | 17 #include "components/signin/core/common/profile_management_switches.h" |
18 #include "google_apis/gaia/google_service_auth_error.h" | 18 #include "google_apis/gaia/google_service_auth_error.h" |
19 #include "ui/base/l10n/l10n_util.h" | 19 #include "ui/base/l10n/l10n_util.h" |
20 | 20 |
21 SyncGlobalError::SyncGlobalError(GlobalErrorService* global_error_service, | 21 SyncGlobalError::SyncGlobalError(GlobalErrorService* global_error_service, |
22 LoginUIService* login_ui_service, | 22 LoginUIService* login_ui_service, |
23 SyncErrorController* error_controller, | 23 SyncErrorController* error_controller, |
24 ProfileSyncService* profile_sync_service) | 24 ProfileSyncService* profile_sync_service) |
25 : global_error_service_(global_error_service), | 25 : global_error_service_(global_error_service), |
26 login_ui_service_(login_ui_service), | 26 login_ui_service_(login_ui_service), |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 | 114 |
115 if (menu_label != menu_label_ || bubble_message != bubble_message_ || | 115 if (menu_label != menu_label_ || bubble_message != bubble_message_ || |
116 bubble_accept_label != bubble_accept_label_) { | 116 bubble_accept_label != bubble_accept_label_) { |
117 menu_label_ = menu_label; | 117 menu_label_ = menu_label; |
118 bubble_message_ = bubble_message; | 118 bubble_message_ = bubble_message; |
119 bubble_accept_label_ = bubble_accept_label; | 119 bubble_accept_label_ = bubble_accept_label; |
120 | 120 |
121 global_error_service_->NotifyErrorsChanged(this); | 121 global_error_service_->NotifyErrorsChanged(this); |
122 } | 122 } |
123 } | 123 } |
OLD | NEW |