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

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

Issue 13162003: Instant: Don't use the local overlay's URL for the NTP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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
Index: chrome/browser/ui/search/instant_controller.cc
diff --git a/chrome/browser/ui/search/instant_controller.cc b/chrome/browser/ui/search/instant_controller.cc
index bb81748fc747a535a8bda891efe1f2913398aaec..6c17fb80c30dcb7ef5a79f4818115b999fa15593 100644
--- a/chrome/browser/ui/search/instant_controller.cc
+++ b/chrome/browser/ui/search/instant_controller.cc
@@ -1430,13 +1430,8 @@ void InstantController::SendPopupBoundsToPage() {
bool InstantController::GetInstantURL(Profile* profile,
bool ignore_blacklist,
std::string* instant_url) const {
- DCHECK(profile);
- instant_url->clear();
-
- if (extended_enabled_ && use_local_overlay_only_) {
- *instant_url = chrome::kChromeSearchLocalOmniboxPopupURL;
- return true;
- }
+ if (extended_enabled_ && use_local_overlay_only_)
+ return false;
const GURL instant_url_obj = chrome::GetInstantURL(profile,
omnibox_bounds_.x());
« no previous file with comments | « chrome/browser/ui/search/instant_controller.h ('k') | chrome/browser/ui/search/instant_extended_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698