| Index: chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
|
| diff --git a/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc b/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
|
| index 8fa1fbf5e44cebbd9d93b4a55aa83e94aafd13ed..5e4883ad1f7716789bdbf2f944e2883c48ca4bd7 100644
|
| --- a/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
|
| +++ b/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
|
| @@ -101,18 +101,6 @@ const char kNoPreviousBeginInstallWithManifestError[] =
|
| "* does not match a previous call to beginInstallWithManifest3";
|
| const char kUserCancelledError[] = "User cancelled install";
|
|
|
| -ProfileSyncService* test_sync_service = NULL;
|
| -
|
| -// Returns either the test sync service, or the real one from |profile|.
|
| -ProfileSyncService* GetSyncService(Profile* profile) {
|
| - // TODO(webstore): It seems |test_sync_service| is not used anywhere. It
|
| - // should be removed.
|
| - if (test_sync_service)
|
| - return test_sync_service;
|
| - else
|
| - return ProfileSyncServiceFactory::GetInstance()->GetForProfile(profile);
|
| -}
|
| -
|
| // Helper to create a dictionary with login and token properties set from
|
| // the appropriate values in the passed-in |profile|.
|
| DictionaryValue* CreateLoginResult(Profile* profile) {
|
| @@ -138,12 +126,6 @@ WebstoreInstaller::Delegate* test_webstore_installer_delegate = NULL;
|
| } // namespace
|
|
|
| // static
|
| -void WebstorePrivateApi::SetTestingProfileSyncService(
|
| - ProfileSyncService* service) {
|
| - test_sync_service = service;
|
| -}
|
| -
|
| -// static
|
| void WebstorePrivateApi::SetWebstoreInstallerDelegateForTesting(
|
| WebstoreInstaller::Delegate* delegate) {
|
| test_webstore_installer_delegate = delegate;
|
|
|