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

Unified Diff: chrome/browser/instant/instant_controller.cc

Issue 11466007: Add new IPC for searchbox to pipe SearchBox NavigateContentWindow calls to the browser. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove extra ; Created 8 years 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/instant/instant_controller.h ('k') | chrome/browser/instant/instant_loader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/instant/instant_controller.cc
diff --git a/chrome/browser/instant/instant_controller.cc b/chrome/browser/instant/instant_controller.cc
index e0fc9e77fef1b23103ee22eca53921410a28aee3..6dbc4041142d8b0ebae51478ea941b15d7044875 100644
--- a/chrome/browser/instant/instant_controller.cc
+++ b/chrome/browser/instant/instant_controller.cc
@@ -391,6 +391,7 @@ void InstantController::HandleAutocompleteResults(
result.type = UTF8ToUTF16(AutocompleteMatch::TypeToString(match->type));
result.description = match->description;
result.destination_url = UTF8ToUTF16(match->destination_url.spec());
+ result.transition = match->transition;
result.relevance = match->relevance;
DVLOG(1) << " " << result.relevance << " " << result.type << " "
<< result.provider << " " << result.destination_url << " '"
@@ -840,6 +841,15 @@ void InstantController::OmniboxLostFocus(gfx::NativeView view_gaining_focus) {
#endif
}
+void InstantController::NavigateToURL(const GURL& url,
+ content::PageTransition transition) {
+ if (!extended_enabled_)
+ return;
+ if (loader_)
+ HideLoader();
+ browser_->OpenURLInCurrentTab(url, transition);
+}
+
bool InstantController::ResetLoader(const TemplateURL* template_url,
const content::WebContents* active_tab) {
std::string instant_url;
« no previous file with comments | « chrome/browser/instant/instant_controller.h ('k') | chrome/browser/instant/instant_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698