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

Unified Diff: chrome/browser/ui/browser_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: 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
Index: chrome/browser/ui/browser_instant_controller.cc
diff --git a/chrome/browser/ui/browser_instant_controller.cc b/chrome/browser/ui/browser_instant_controller.cc
index 9b8204994fd1436220b588d895528755bbde7b95..d3810cd7e5ea2a0d94cd549376fa9e4402a55334 100644
--- a/chrome/browser/ui/browser_instant_controller.cc
+++ b/chrome/browser/ui/browser_instant_controller.cc
@@ -154,6 +154,16 @@ void BrowserInstantController::UpdateThemeInfoForPreview() {
OnThemeChanged(NULL);
}
+void BrowserInstantController::OpenURLInCurrentTab(const GURL& url) {
+ browser_->OpenURL(content::OpenURLParams(
+ url,
+ content::Referrer(),
samarth 2012/12/07 02:01:35 This is fine for now, but there might be cases whe
Shishir 2012/12/10 20:40:39 Sure. It's easy to add params and maybe we could e
+ CURRENT_TAB,
+ content::PAGE_TRANSITION_TYPED,
+ //content::PAGE_TRANSITION_FROM_ADDRESS_BAR,
samarth 2012/12/07 02:01:35 remove?
Shishir 2012/12/10 20:40:39 Not 100% sure what transition we want to label thi
+ false));
+}
+
void BrowserInstantController::ResetInstant() {
instant_.SetInstantEnabled(IsInstantEnabled(browser_->profile()));
}

Powered by Google App Engine
This is Rietveld 408576698