Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4376)

Unified Diff: chrome/browser/extensions/api/webstore_private/webstore_private_api.cc

Issue 10977073: Delete some unused code found by -Wunused-function (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: leiz Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698