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

Unified Diff: chrome/browser/ui/app_list/search/webstore/webstore_provider_browsertest.cc

Issue 2506713002: Avoid parsing the webstore base url so much. (Closed)
Patch Set: fix chromeos Created 4 years, 1 month 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/ui/app_list/search/webstore/webstore_provider_browsertest.cc
diff --git a/chrome/browser/ui/app_list/search/webstore/webstore_provider_browsertest.cc b/chrome/browser/ui/app_list/search/webstore/webstore_provider_browsertest.cc
index e379ebf87b15b5b3754cd57cd4ca80cd4f577bc0..6e10205a20fc24601a637eda4367c65a3c8cb3d5 100644
--- a/chrome/browser/ui/app_list/search/webstore/webstore_provider_browsertest.cc
+++ b/chrome/browser/ui/app_list/search/webstore/webstore_provider_browsertest.cc
@@ -169,8 +169,11 @@ class WebstoreProviderTest : public InProcessBrowserTest {
base::Bind(&WebstoreProviderTest::HandleRequest,
base::Unretained(this)));
ASSERT_TRUE(embedded_test_server()->Start());
+ // Minor hack: the gallery URL is expected not to end with a slash. Just
+ // append "path" to maintain this.
base::CommandLine::ForCurrentProcess()->AppendSwitchASCII(
- ::switches::kAppsGalleryURL, embedded_test_server()->base_url().spec());
+ ::switches::kAppsGalleryURL,
+ embedded_test_server()->base_url().spec() + "path");
mock_controller_.reset(new AppListControllerDelegateForTest);
webstore_provider_.reset(new WebstoreProvider(
« no previous file with comments | « chrome/browser/prerender/prerender_browsertest.cc ('k') | chrome/browser/ui/webui/ntp/ntp_resource_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698