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

Unified Diff: chrome/browser/chromeos/locale_change_guard.cc

Issue 6257008: Hide private stuff into .cc file (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/locale_change_guard.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/locale_change_guard.cc
diff --git a/chrome/browser/chromeos/locale_change_guard.cc b/chrome/browser/chromeos/locale_change_guard.cc
index f10775167b6fd3da4eb2cfc989118c7e8708e908..627c992d2a416a0866194d15867994430910798f 100644
--- a/chrome/browser/chromeos/locale_change_guard.cc
+++ b/chrome/browser/chromeos/locale_change_guard.cc
@@ -8,7 +8,9 @@
#include "base/utf_string_conversions.h"
#include "chrome/app/chrome_command_ids.h"
#include "chrome/browser/browser_process.h"
+#include "chrome/browser/chromeos/notifications/system_notification.h"
#include "chrome/browser/metrics/user_metrics.h"
+#include "chrome/browser/notifications/notification_delegate.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/browser/ui/browser.h"
@@ -25,6 +27,21 @@ base::LazyInstance<chromeos::LocaleChangeGuard> g_locale_change_guard(
namespace chromeos {
+class LocaleChangeGuard::Delegate : public NotificationDelegate {
+ public:
+ explicit Delegate(chromeos::LocaleChangeGuard* master) : master_(master) {}
+ void Close(bool by_user);
+ void Display() {}
+ void Error() {}
+ void Click() {}
+ std::string id() const;
+
+ private:
+ chromeos::LocaleChangeGuard* master_;
+
+ DISALLOW_COPY_AND_ASSIGN(Delegate);
+};
+
LocaleChangeGuard::LocaleChangeGuard()
: profile_id_(Profile::InvalidProfileId),
tab_contents_(NULL),
« no previous file with comments | « chrome/browser/chromeos/locale_change_guard.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698