Commit 993d6b8e authored by Devlin Cronin's avatar Devlin Cronin Committed by Commit Bot

[Extensions] Remove unused function SetGalleryURL()

extension_test_util::SetGalleryURL() has no callers. Remove it.

Bug: None
Change-Id: I49eeeb1c6d760d581a6a14b5c89960bfc959f430
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1835100Reviewed-by: default avatarIstiaque Ahmed <lazyboy@chromium.org>
Commit-Queue: Devlin <rdevlin.cronin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#702415}
parent 4f8b9629
...@@ -87,12 +87,6 @@ scoped_refptr<Extension> LoadManifest(const std::string& dir, ...@@ -87,12 +87,6 @@ scoped_refptr<Extension> LoadManifest(const std::string& dir,
return LoadManifest(dir, test_file, Extension::NO_FLAGS); return LoadManifest(dir, test_file, Extension::NO_FLAGS);
} }
void SetGalleryURL(const GURL& new_url) {
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
command_line->AppendSwitchASCII(switches::kAppsGalleryURL, new_url.spec());
extensions::ExtensionsClient::Get()->InitializeWebStoreUrls(command_line);
}
void SetGalleryUpdateURL(const GURL& new_url) { void SetGalleryUpdateURL(const GURL& new_url) {
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
command_line->AppendSwitchASCII(switches::kAppsGalleryUpdateURL, command_line->AppendSwitchASCII(switches::kAppsGalleryUpdateURL,
......
...@@ -55,7 +55,6 @@ scoped_refptr<extensions::Extension> LoadManifestStrict( ...@@ -55,7 +55,6 @@ scoped_refptr<extensions::Extension> LoadManifestStrict(
scoped_refptr<extensions::Extension> LoadManifest(const std::string& dir, scoped_refptr<extensions::Extension> LoadManifest(const std::string& dir,
const std::string& test_file); const std::string& test_file);
void SetGalleryURL(const GURL& new_url);
void SetGalleryUpdateURL(const GURL& new_url); void SetGalleryUpdateURL(const GURL& new_url);
// Returns a ScopedCurrentChannel object to use in tests if one is necessary for // Returns a ScopedCurrentChannel object to use in tests if one is necessary for
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment