diff options
author | finnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-16 23:25:48 +0000 |
---|---|---|
committer | finnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-16 23:25:48 +0000 |
commit | 9dd60a42e18aaf6d55f1302f6fe4d40cc6fd942d (patch) | |
tree | 68711b6224a2d55b75f19f972359ffefbb889a70 /chrome/browser/sync/test_profile_sync_service.h | |
parent | 1920f5ff312cf8216583cbb4282a19a860dd5009 (diff) | |
download | chromium_src-9dd60a42e18aaf6d55f1302f6fe4d40cc6fd942d.zip chromium_src-9dd60a42e18aaf6d55f1302f6fe4d40cc6fd942d.tar.gz chromium_src-9dd60a42e18aaf6d55f1302f6fe4d40cc6fd942d.tar.bz2 |
Reverting change: broke unit tests on chrome OS.
Revert 39143 - This change will include preferences as part of the usual startup sequence of the PSS that already includes bookmarks. This is a temporary solution until we have a proper component to manage the startup and shutdown of multiple data types.
Review URL: http://codereview.chromium.org/601037
TBR=skrul@chromium.org
Review URL: http://codereview.chromium.org/611006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39155 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/test_profile_sync_service.h')
-rw-r--r-- | chrome/browser/sync/test_profile_sync_service.h | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/chrome/browser/sync/test_profile_sync_service.h b/chrome/browser/sync/test_profile_sync_service.h deleted file mode 100644 index 96d57da..0000000 --- a/chrome/browser/sync/test_profile_sync_service.h +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ -#define CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ - -#include "base/message_loop.h" -#include "chrome/browser/profile.h" -#include "chrome/browser/sync/profile_sync_service.h" -#include "chrome/test/sync/test_http_bridge_factory.h" - -class TestProfileSyncService : public ProfileSyncService { - public: - explicit TestProfileSyncService(Profile* profile) - : ProfileSyncService(profile) { - RegisterPreferences(); - SetSyncSetupCompleted(); - } - virtual ~TestProfileSyncService() { - } - - virtual void InitializeBackend(bool delete_sync_data_folder) { - browser_sync::TestHttpBridgeFactory* factory = - new browser_sync::TestHttpBridgeFactory(); - browser_sync::TestHttpBridgeFactory* factory2 = - new browser_sync::TestHttpBridgeFactory(); - backend()->InitializeForTestMode(L"testuser", factory, factory2, - delete_sync_data_folder, browser_sync::kDefaultNotificationMethod); - // The SyncBackend posts a task to the current loop when initialization - // completes. - MessageLoop::current()->Run(); - // Initialization is synchronous for test mode, so we should be good to go. - DCHECK(sync_initialized()); - } - - virtual void OnBackendInitialized() { - ProfileSyncService::OnBackendInitialized(); - MessageLoop::current()->Quit(); - } -}; - -#endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ |