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

Side by Side Diff: chrome/browser/chromeos/locale_change_guard.h

Issue 10947046: Eliminate kAshNotifyDisabled and SystemNotification (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nit Created 8 years, 3 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
OLDNEW
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 #ifndef CHROME_BROWSER_CHROMEOS_LOCALE_CHANGE_GUARD_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOCALE_CHANGE_GUARD_H_
6 #define CHROME_BROWSER_CHROMEOS_LOCALE_CHANGE_GUARD_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOCALE_CHANGE_GUARD_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ash/system/locale/locale_observer.h" 10 #include "ash/system/locale/locale_observer.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/lazy_instance.h" 12 #include "base/lazy_instance.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "chrome/browser/chromeos/notifications/system_notification.h" 15 #include "base/string16.h"
16 #include "content/public/browser/notification_observer.h" 16 #include "content/public/browser/notification_observer.h"
17 #include "content/public/browser/notification_registrar.h" 17 #include "content/public/browser/notification_registrar.h"
18 #include "content/public/browser/notification_types.h" 18 #include "content/public/browser/notification_types.h"
19 19
20 class Profile; 20 class Profile;
21 21
22 namespace base { 22 namespace base {
23 class ListValue; 23 class ListValue;
24 } 24 }
25 25
(...skipping 27 matching lines...) Expand all
53 void Check(); 53 void Check();
54 54
55 // content::NotificationObserver implementation. 55 // content::NotificationObserver implementation.
56 virtual void Observe(int type, 56 virtual void Observe(int type,
57 const content::NotificationSource& source, 57 const content::NotificationSource& source,
58 const content::NotificationDetails& details) OVERRIDE; 58 const content::NotificationDetails& details) OVERRIDE;
59 59
60 std::string from_locale_; 60 std::string from_locale_;
61 std::string to_locale_; 61 std::string to_locale_;
62 Profile* profile_; 62 Profile* profile_;
63 scoped_ptr<chromeos::SystemNotification> note_;
64 bool reverted_; 63 bool reverted_;
65 content::NotificationRegistrar registrar_; 64 content::NotificationRegistrar registrar_;
66 65
67 // We want to show locale change notification in previous language however 66 // We want to show locale change notification in previous language however
68 // we cannot directly load strings for non-current locale. So we cache 67 // we cannot directly load strings for non-current locale. So we cache
69 // messages before locale change. 68 // messages before locale change.
70 string16 title_text_; 69 string16 title_text_;
71 string16 message_text_; 70 string16 message_text_;
72 string16 revert_link_text_; 71 string16 revert_link_text_;
73 }; 72 };
74 73
75 } // namespace chromeos 74 } // namespace chromeos
76 75
77 #endif // CHROME_BROWSER_CHROMEOS_LOCALE_CHANGE_GUARD_H_ 76 #endif // CHROME_BROWSER_CHROMEOS_LOCALE_CHANGE_GUARD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698