| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_error_notifier_ash.h" | 5 #include "chrome/browser/sync/sync_error_notifier_ash.h" |
| 6 | 6 |
| 7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
| 8 #include "ash/shell_delegate.h" | 8 #include "ash/shell_delegate.h" |
| 9 #include "ash/system/system_notifier.h" | 9 #include "ash/system/system_notifier.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "grit/generated_resources.h" | 22 #include "grit/generated_resources.h" |
| 23 #include "grit/theme_resources.h" | 23 #include "grit/theme_resources.h" |
| 24 #include "third_party/WebKit/public/web/WebTextDirection.h" | 24 #include "third_party/WebKit/public/web/WebTextDirection.h" |
| 25 #include "ui/base/l10n/l10n_util.h" | 25 #include "ui/base/l10n/l10n_util.h" |
| 26 #include "ui/base/resource/resource_bundle.h" | 26 #include "ui/base/resource/resource_bundle.h" |
| 27 #include "ui/message_center/notification.h" | 27 #include "ui/message_center/notification.h" |
| 28 #include "ui/message_center/notification_delegate.h" | 28 #include "ui/message_center/notification_delegate.h" |
| 29 | 29 |
| 30 #if defined(OS_CHROMEOS) | 30 #if defined(OS_CHROMEOS) |
| 31 #include "chrome/browser/chromeos/login/user_flow.h" | 31 #include "chrome/browser/chromeos/login/user_flow.h" |
| 32 #include "chrome/browser/chromeos/login/user_manager.h" | 32 #include "chrome/browser/chromeos/login/users/user_manager.h" |
| 33 #endif | 33 #endif |
| 34 | 34 |
| 35 | 35 |
| 36 namespace { | 36 namespace { |
| 37 | 37 |
| 38 const char kProfileSyncNotificationId[] = "chrome://settings/sync/"; | 38 const char kProfileSyncNotificationId[] = "chrome://settings/sync/"; |
| 39 | 39 |
| 40 // A simple notification delegate for the sync setup button. | 40 // A simple notification delegate for the sync setup button. |
| 41 class SyncNotificationDelegate : public NotificationDelegate { | 41 class SyncNotificationDelegate : public NotificationDelegate { |
| 42 public: | 42 public: |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 ui::ResourceBundle::GetSharedInstance().GetImageNamed( | 189 ui::ResourceBundle::GetSharedInstance().GetImageNamed( |
| 190 IDR_NOTIFICATION_ALERT), | 190 IDR_NOTIFICATION_ALERT), |
| 191 blink::WebTextDirectionDefault, | 191 blink::WebTextDirectionDefault, |
| 192 notifier_id, | 192 notifier_id, |
| 193 base::string16(), // display_source | 193 base::string16(), // display_source |
| 194 base::ASCIIToUTF16(notification_id_), | 194 base::ASCIIToUTF16(notification_id_), |
| 195 data, | 195 data, |
| 196 delegate); | 196 delegate); |
| 197 notification_ui_manager->Add(notification, profile_); | 197 notification_ui_manager->Add(notification, profile_); |
| 198 } | 198 } |
| OLD | NEW |