summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/chromeos')
-rw-r--r--chrome/browser/chromeos/locale_change_guard.cc17
-rw-r--r--chrome/browser/chromeos/locale_change_guard.h19
2 files changed, 20 insertions, 16 deletions
diff --git a/chrome/browser/chromeos/locale_change_guard.cc b/chrome/browser/chromeos/locale_change_guard.cc
index f107751..627c992 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),
diff --git a/chrome/browser/chromeos/locale_change_guard.h b/chrome/browser/chromeos/locale_change_guard.h
index ed6fa43..0391761 100644
--- a/chrome/browser/chromeos/locale_change_guard.h
+++ b/chrome/browser/chromeos/locale_change_guard.h
@@ -8,8 +8,6 @@
#include "base/lazy_instance.h"
#include "base/scoped_ptr.h"
-#include "chrome/browser/chromeos/notifications/system_notification.h"
-#include "chrome/browser/notifications/notification_delegate.h"
#include "chrome/browser/profiles/profile.h"
class ListValue;
@@ -17,6 +15,8 @@ class TabContents;
namespace chromeos {
+class SystemNotification;
+
class LocaleChangeGuard {
public:
// When called first time for user profile: performs check whether
@@ -26,20 +26,7 @@ class LocaleChangeGuard {
static void Check(TabContents* tab_contents);
private:
- class 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);
- };
+ class Delegate;
LocaleChangeGuard();
void CheckLocaleChange(TabContents* tab_contents);