summaryrefslogtreecommitdiffstats
path: root/chrome/test/testing_profile.cc
diff options
context:
space:
mode:
authorbrg@chromium.com <brg@chromium.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-29 09:11:44 +0000
committerbrg@chromium.com <brg@chromium.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-29 09:11:44 +0000
commit345a8b7973e6693d115d20573f7cef17e4525cb3 (patch)
tree2a77dcf7842d660688a9775569f1adee43a82184 /chrome/test/testing_profile.cc
parent2c365900efc2d9aeba3df9c7f5afd1e45d9b530d (diff)
downloadchromium_src-345a8b7973e6693d115d20573f7cef17e4525cb3.zip
chromium_src-345a8b7973e6693d115d20573f7cef17e4525cb3.tar.gz
chromium_src-345a8b7973e6693d115d20573f7cef17e4525cb3.tar.bz2
Remove the enable-sync flag from the Chrome command line and enable sync by default.
BUG=none Test=Sync my bookmarks should be enabled by default. Review URL: http://codereview.chromium.org/248024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27472 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/testing_profile.cc')
-rw-r--r--chrome/test/testing_profile.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/chrome/test/testing_profile.cc b/chrome/test/testing_profile.cc
index 1eb312d..cb380fc 100644
--- a/chrome/test/testing_profile.cc
+++ b/chrome/test/testing_profile.cc
@@ -8,6 +8,7 @@
#include "base/string_util.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
#include "chrome/browser/history/history_backend.h"
+#include "chrome/browser/sync/profile_sync_service.h"
#include "chrome/common/chrome_constants.h"
#if defined(OS_LINUX) && !defined(TOOLKIT_VIEWS)
@@ -199,3 +200,19 @@ void TestingProfile::BlockUntilHistoryProcessesPendingRequests() {
history_service_->ScheduleDBTask(new QuittingHistoryDBTask(), &consumer);
MessageLoop::current()->Run();
}
+
+void TestingProfile::CreateProfileSyncService() {
+#ifdef CHROME_PERSONALIZATION
+ if (!profile_sync_service_.get()) {
+ profile_sync_service_.reset(new ProfileSyncService(this));
+ profile_sync_service_->Initialize();
+ }
+#endif
+}
+
+ProfileSyncService* TestingProfile::GetProfileSyncService() {
+#ifdef CHROME_PERSONALIZATION
+ return profile_sync_service_.get();
+#endif
+ return NULL;
+}