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

Unified Diff: chrome/browser/profiles/profile_impl.h

Issue 7583003: [Refactoring] Extracted SpellCheckProfile from ProfileImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: To commit Created 9 years, 4 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 | « no previous file | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_impl.h
diff --git a/chrome/browser/profiles/profile_impl.h b/chrome/browser/profiles/profile_impl.h
index 3f1b0a885c000e732ff74b637dc2aa8dde363d77..15312db0797a53edd952256962f3d84d579df7b4 100644
--- a/chrome/browser/profiles/profile_impl.h
+++ b/chrome/browser/profiles/profile_impl.h
@@ -15,7 +15,6 @@
#include "chrome/browser/prefs/pref_change_registrar.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_impl_io_data.h"
-#include "chrome/browser/spellchecker/spellcheck_host_observer.h"
#include "content/common/notification_observer.h"
#include "content/common/notification_registrar.h"
@@ -23,7 +22,7 @@ class ChromeDownloadManagerDelegate;
class ExtensionPrefs;
class ExtensionPrefValueMap;
class PrefService;
-class SpellCheckHostMetrics;
+class SpellCheckProfile;
#if defined(OS_CHROMEOS)
namespace chromeos {
@@ -37,7 +36,6 @@ class NetPrefObserver;
// The default profile implementation.
class ProfileImpl : public Profile,
- public SpellCheckHostObserver,
public NotificationObserver {
public:
virtual ~ProfileImpl();
@@ -142,9 +140,6 @@ class ProfileImpl : public Profile,
const NotificationSource& source,
const NotificationDetails& details);
- // SpellCheckHostObserver implementation.
- virtual void SpellCheckHostInitialized();
-
private:
friend class Profile;
@@ -180,6 +175,8 @@ class ProfileImpl : public Profile,
void CreateQuotaManagerAndClients();
+ SpellCheckProfile* GetSpellCheckProfile();
+
NotificationRegistrar registrar_;
PrefChangeRegistrar pref_change_registrar_;
@@ -261,12 +258,7 @@ class ProfileImpl : public Profile,
// See GetStartTime for details.
base::Time start_time_;
- scoped_refptr<SpellCheckHost> spellcheck_host_;
- scoped_ptr<SpellCheckHostMetrics> spellcheck_host_metrics_;
-
- // Indicates whether |spellcheck_host_| has told us initialization is
- // finished.
- bool spellcheck_host_ready_;
+ scoped_ptr<SpellCheckProfile> spellcheck_profile_;
#if defined(OS_WIN)
bool checked_instant_promo_;
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698