summaryrefslogtreecommitdiffstats
path: root/chrome/browser/profile.h
diff options
context:
space:
mode:
authortim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-15 01:19:11 +0000
committertim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-15 01:19:11 +0000
commit48352c11fe849f7f786c43bdfe293dc2c58d12c5 (patch)
tree57708d7e211d7cbcf2b81b1395740f5859a62aa1 /chrome/browser/profile.h
parent20cc723d102acb16b61789714bbf443ba3d7d1f5 (diff)
downloadchromium_src-48352c11fe849f7f786c43bdfe293dc2c58d12c5.zip
chromium_src-48352c11fe849f7f786c43bdfe293dc2c58d12c5.tar.gz
chromium_src-48352c11fe849f7f786c43bdfe293dc2c58d12c5.tar.bz2
Some personalization cleanup:
- Removes ProfilePersonalization (which is why the CL appears huge) - Makes Profile do the work ProfilePersonalization did for creating PSS - cloudy:stats > about:sync - Removes the cloudy:// scheme and uses chrome:// for resources. (Note SyncResourcesSource is a straight copy of CloudyResourceSource). - Moves prefs and switches to pref_names and chrome_switches. BUG=none TEST=ProfileSyncServiceTest, LiveBookmarkSyncTests, SyncSetupWizardTest Review URL: http://codereview.chromium.org/164544 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23505 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profile.h')
-rw-r--r--chrome/browser/profile.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/chrome/browser/profile.h b/chrome/browser/profile.h
index a305888..318c6e2 100644
--- a/chrome/browser/profile.h
+++ b/chrome/browser/profile.h
@@ -15,9 +15,6 @@
#include "base/file_path.h"
#include "base/scoped_ptr.h"
#include "base/timer.h"
-#ifdef CHROME_PERSONALIZATION
-#include "chrome/browser/sync/personalization.h"
-#endif
#include "chrome/browser/web_resource/web_resource_service.h"
#include "chrome/common/notification_registrar.h"
@@ -37,6 +34,7 @@ class HistoryService;
class NavigationController;
class PasswordStore;
class PrefService;
+class ProfileSyncService;
class SessionService;
class SpellChecker;
class SSLHostState;
@@ -258,9 +256,8 @@ class Profile {
// Returns the BookmarkModel, creating if not yet created.
virtual BookmarkModel* GetBookmarkModel() = 0;
-#ifdef CHROME_PERSONALIZATION
- virtual ProfilePersonalization* GetProfilePersonalization() = 0;
-#endif
+ // Returns the ProfileSyncService, creating if not yet created.
+ virtual ProfileSyncService* GetProfileSyncService() = 0;
// Return whether 2 profiles are the same. 2 profiles are the same if they
// represent the same profile. This can happen if there is pointer equality
@@ -383,9 +380,9 @@ class ProfileImpl : public Profile,
virtual void MarkAsCleanShutdown();
virtual void InitExtensions();
virtual void InitWebResources();
-#ifdef CHROME_PERSONALIZATION
- virtual ProfilePersonalization* GetProfilePersonalization();
-#endif
+ virtual ProfileSyncService* GetProfileSyncService();
+ void InitSyncService();
+
// NotificationObserver implementation.
virtual void Observe(NotificationType type,
const NotificationSource& source,
@@ -436,7 +433,7 @@ class ProfileImpl : public Profile,
scoped_refptr<WebResourceService> web_resource_service_;
#ifdef CHROME_PERSONALIZATION
- scoped_ptr<ProfilePersonalization> personalization_;
+ scoped_ptr<ProfileSyncService> sync_service_;
#endif
ChromeURLRequestContext* request_context_;