diff options
author | nick@chromium.org <nick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-17 00:28:13 +0000 |
---|---|---|
committer | nick@chromium.org <nick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-17 00:28:13 +0000 |
commit | 066629fad83ffbc3c3d67d2c19191d1da36138ef (patch) | |
tree | 889cb8be535354b58bb3859b5c8c951f8bb3e79c /chrome/browser/browser_about_handler.cc | |
parent | 64e0ec0be0663c7f520c6cb9728c055edc916a89 (diff) | |
download | chromium_src-066629fad83ffbc3c3d67d2c19191d1da36138ef.zip chromium_src-066629fad83ffbc3c3d67d2c19191d1da36138ef.tar.gz chromium_src-066629fad83ffbc3c3d67d2c19191d1da36138ef.tar.bz2 |
Rename CHROME_PERSONALIZATION to BROWSER_SYNC.
Avoid #ifdef in general, favoring #if defined().
In one spot, use PlatformThread::Sleep instead of rolling our own.
Review URL: http://codereview.chromium.org/267125
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29360 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_about_handler.cc')
-rw-r--r-- | chrome/browser/browser_about_handler.cc | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/chrome/browser/browser_about_handler.cc b/chrome/browser/browser_about_handler.cc index 9c07143..9a9e94b 100644 --- a/chrome/browser/browser_about_handler.cc +++ b/chrome/browser/browser_about_handler.cc @@ -28,6 +28,8 @@ #include "chrome/browser/profile_manager.h" #include "chrome/browser/renderer_host/render_process_host.h" #include "chrome/browser/renderer_host/render_view_host.h" +#include "chrome/browser/sync/auth_error_state.h" +#include "chrome/browser/sync/profile_sync_service.h" #include "chrome/common/chrome_paths.h" #include "chrome/common/histogram_synchronizer.h" #include "chrome/common/jstemplate_builder.h" @@ -59,13 +61,10 @@ #include "third_party/tcmalloc/tcmalloc/src/google/malloc_extension.h" #endif -#ifdef CHROME_PERSONALIZATION -#include "chrome/browser/sync/auth_error_state.h" -#include "chrome/browser/sync/profile_sync_service.h" +#if defined(BROWSER_SYNC) using sync_api::SyncManager; #endif - using base::Time; using base::TimeDelta; @@ -470,7 +469,7 @@ std::string AboutVersion(DictionaryValue* localized_strings) { return output; } -#ifdef CHROME_PERSONALIZATION +#if defined(BROWSER_SYNC) static void AddBoolSyncDetail(ListValue* details, const std::wstring& stat_name, bool stat_value) { DictionaryValue* val = new DictionaryValue; @@ -561,7 +560,7 @@ std::string AboutSync() { return jstemplate_builder::GetTemplateHtml( sync_html, &strings , "t" /* template root node id */); } -#endif +#endif // defined(BROWSER_SYNC) // AboutSource ----------------------------------------------------------------- @@ -625,7 +624,7 @@ void AboutSource::StartDataRequest(const std::string& path_raw, } else if (path == kTermsPath) { response = AboutTerms(); } else if (path == kSyncPath) { -#ifdef CHROME_PERSONALIZATION +#if defined(BROWSER_SYNC) response = AboutSync(); #endif } |