Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Side by Side Diff: chrome/browser/sync/sync_error_notifier_ash.cc

Issue 286933002: [cros login] Split login related classes into subfolders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix includes in new tests Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/signin/signin_error_notifier_ash.cc ('k') | chrome/browser/sync/sync_ui_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/signin/signin_error_notifier_ash.cc ('k') | chrome/browser/sync/sync_ui_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698