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

Unified Diff: chrome/browser/autocomplete/search_provider.h

Issue 9968016: Move the URL string from TemplateURLRef onto the owning TemplateURL. This will make it easier to m… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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
« no previous file with comments | « chrome/browser/autocomplete/keyword_provider.cc ('k') | chrome/browser/autocomplete/search_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/search_provider.h
===================================================================
--- chrome/browser/autocomplete/search_provider.h (revision 130285)
+++ chrome/browser/autocomplete/search_provider.h (working copy)
@@ -120,7 +120,8 @@
// Returns true if the keyword provider is valid and has a valid suggest
// url.
bool valid_suggest_for_keyword_provider() const {
- return keyword_provider_ && cached_keyword_provider_.suggestions_url();
+ return keyword_provider_ &&
+ !cached_keyword_provider_.suggestions_url().empty();
}
// Returns true of the default provider is valid.
@@ -129,7 +130,8 @@
// Returns true if the default provider is valid and has a valid suggest
// url.
bool valid_suggest_for_default_provider() const {
- return default_provider_ && cached_default_provider_.suggestions_url();
+ return default_provider_ &&
+ !cached_default_provider_.suggestions_url().empty();
}
// Returns true if |from_keyword_provider| is true, or
« no previous file with comments | « chrome/browser/autocomplete/keyword_provider.cc ('k') | chrome/browser/autocomplete/search_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698