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

Unified Diff: chrome/browser/ui/search/instant_test_utils.cc

Issue 1135163002: Omnibox - Strip Extra Whitespace from Custom Search Engine Names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix more tests that don't set short_name Created 5 years, 7 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/ui/search/instant_test_utils.cc
diff --git a/chrome/browser/ui/search/instant_test_utils.cc b/chrome/browser/ui/search/instant_test_utils.cc
index 838a9dbef80df212ab8723c9009b368453c992c4..e40f16c7e6afdff56518793cdf6d97eb7e48cb10 100644
--- a/chrome/browser/ui/search/instant_test_utils.cc
+++ b/chrome/browser/ui/search/instant_test_utils.cc
@@ -54,7 +54,7 @@ void InstantTestBase::SetupInstant(Browser* browser) {
TemplateURLData data;
// Necessary to use exact URL for both the main URL and the alternate URL for
// search term extraction to work in InstantExtended.
- data.short_name = base::ASCIIToUTF16("name");
+ data.SetShortName(base::ASCIIToUTF16("name"));
data.SetURL(instant_url_.spec() +
"q={searchTerms}&is_search&{google:omniboxStartMarginParameter}");
data.instant_url = instant_url_.spec();
@@ -75,7 +75,7 @@ void InstantTestBase::SetInstantURL(const std::string& url) {
ui_test_utils::WaitForTemplateURLServiceToLoad(service);
TemplateURLData data;
- data.short_name = base::ASCIIToUTF16("name");
+ data.SetShortName(base::ASCIIToUTF16("name"));
data.SetURL(url);
data.instant_url = url;

Powered by Google App Engine
This is Rietveld 408576698