diff options
author | timsteele@google.com <timsteele@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-15 18:46:34 +0000 |
---|---|---|
committer | timsteele@google.com <timsteele@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-15 18:46:34 +0000 |
commit | 3a453fa1f16dfa4168e52790e329148366abb05f (patch) | |
tree | a8bbab89ec883a838600e0b63d92fad4361e5dfb /chrome/browser/profile.h | |
parent | 173de1be12780200c62bae5c01965d51ac0eaa31 (diff) | |
download | chromium_src-3a453fa1f16dfa4168e52790e329148366abb05f.zip chromium_src-3a453fa1f16dfa4168e52790e329148366abb05f.tar.gz chromium_src-3a453fa1f16dfa4168e52790e329148366abb05f.tar.bz2 |
Copy from http://chrome-reviews.prom.corp.google.com/1237 (new gcl changelist model).
Description was:
Conditionally include personalization/ code by surrounding
the hooks into this module with #ifdef CHROME_PERSONALIZATION
in various .h/.cc files.
Building with the module requires adding this macro as a preprocessor
definition in build/internal/essential.vsprops, and adding it to the
VCResourceCompiler tool's command line (using /d). We will try and
make this easier in the future.
TBR=darin
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@955 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profile.h')
-rw-r--r-- | chrome/browser/profile.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/chrome/browser/profile.h b/chrome/browser/profile.h index 631a93c..b353f36 100644 --- a/chrome/browser/profile.h +++ b/chrome/browser/profile.h @@ -40,6 +40,9 @@ #include "base/scoped_ptr.h" #include "base/task.h" #include "base/time.h" +#ifdef CHROME_PERSONALIZATION +#include "chrome/personalization/personalization.h" +#endif class BookmarkBarModel; class DownloadManager; @@ -219,6 +222,10 @@ class Profile { // Returns the BookmarkBarModel, creating if not yet created. virtual BookmarkBarModel* GetBookmarkBarModel() = 0; +#ifdef CHROME_PERSONALIZATION + virtual ProfilePersonalization GetProfilePersonalization() = 0; +#endif + // 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 // or if one profile is the off the record version of another profile (or vice @@ -299,6 +306,9 @@ class ProfileImpl : public Profile { virtual void ResetTabRestoreService(); virtual SpellChecker* GetSpellChecker(); virtual void MarkAsCleanShutdown(); +#ifdef CHROME_PERSONALIZATION + virtual ProfilePersonalization GetProfilePersonalization(); +#endif private: class RequestContext; @@ -337,6 +347,10 @@ class ProfileImpl : public Profile { scoped_ptr<TemplateURLModel> template_url_model_; scoped_ptr<BookmarkBarModel> bookmark_bar_model_; +#ifdef CHROME_PERSONALIZATION + ProfilePersonalization personalization_; +#endif + RequestContext* request_context_; scoped_refptr<DownloadManager> download_manager_; |