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

Issue 11644009: Added support for passing WindowOpenDisposition into BrowserInstantController::OpenURL() from the o… (Closed)

Created:
8 years ago by dougw
Modified:
7 years, 10 months ago
Visibility:
Public.

Description

Added support for passing WindowOpenDisposition into BrowserInstantController::OpenURL() from the omnibox in GWS. BUG=159328 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=184570

Patch Set 1 #

Total comments: 10

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 10

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Total comments: 2

Patch Set 9 : #

Patch Set 10 : #

Total comments: 15

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Total comments: 6

Patch Set 14 : #

Patch Set 15 : #

Patch Set 16 : #

Patch Set 17 : #

Patch Set 18 : #

Total comments: 20

Patch Set 19 : #

Total comments: 6

Patch Set 20 : #

Total comments: 7

Patch Set 21 : #

Patch Set 22 : #

Total comments: 4

Patch Set 23 : #

Patch Set 24 : #

Patch Set 25 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -30 lines) Patch
M chrome/browser/instant/instant_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 3 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/instant/instant_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/instant/instant_extended_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +40 lines, -0 lines 0 comments Download
M chrome/browser/instant/instant_page.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2 chunks +10 lines, -7 lines 0 comments Download
M chrome/browser/instant/instant_page.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 3 chunks +43 lines, -4 lines 0 comments Download
M chrome/browser/ui/browser_instant_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/browser_instant_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/common/render_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/renderer/resources/extensions/searchbox_api.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/renderer/searchbox/searchbox.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2 chunks +4 lines, -1 line 0 comments Download
M chrome/renderer/searchbox/searchbox.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/renderer/searchbox/searchbox_extension.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2 chunks +8 lines, -3 lines 0 comments Download

Messages

Total messages: 38 (0 generated)
dougw
8 years ago (2012-12-18 23:12:38 UTC) #1
dougw
7 years, 11 months ago (2013-01-08 22:16:10 UTC) #2
samarth
On second thought, how about we just define an "enum" in the javascript for the ...
7 years, 11 months ago (2013-01-10 21:42:04 UTC) #3
dougw
https://codereview.chromium.org/11644009/diff/1/chrome/browser/instant/instant_tab.cc File chrome/browser/instant/instant_tab.cc (left): https://codereview.chromium.org/11644009/diff/1/chrome/browser/instant/instant_tab.cc#oldcode6 chrome/browser/instant/instant_tab.cc:6: On 2013/01/10 21:42:04, samarth wrote: > nit: leave this ...
7 years, 11 months ago (2013-01-18 23:54:30 UTC) #4
sreeram
Just a couple of nits. Fix them, and this is ready to go. https://chromiumcodereview.appspot.com/11644009/diff/21004/chrome/browser/instant/instant_loader.cc File ...
7 years, 11 months ago (2013-01-22 06:01:19 UTC) #5
samarth
lgtm How about a simple browsertest? Thanks, Samarth https://codereview.chromium.org/11644009/diff/21004/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js File chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js (right): https://codereview.chromium.org/11644009/diff/21004/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js#newcode19 chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js:19: // ...
7 years, 11 months ago (2013-01-22 16:13:32 UTC) #6
sreeram
On Tue, Jan 22, 2013 at 2:22 PM, Douglas Wightman <dougw@google.com> wrote: > Ok, for ...
7 years, 11 months ago (2013-01-22 22:34:14 UTC) #7
dougw
https://codereview.chromium.org/11644009/diff/21004/chrome/browser/instant/instant_loader.cc File chrome/browser/instant/instant_loader.cc (right): https://codereview.chromium.org/11644009/diff/21004/chrome/browser/instant/instant_loader.cc#newcode23 chrome/browser/instant/instant_loader.cc:23: #include "webkit/glue/window_open_disposition.h" On 2013/01/22 06:01:19, sreeram wrote: > You ...
7 years, 11 months ago (2013-01-24 03:05:25 UTC) #8
sreeram
https://codereview.chromium.org/11644009/diff/43002/chrome/browser/instant/instant_browsertest.cc File chrome/browser/instant/instant_browsertest.cc (right): https://codereview.chromium.org/11644009/diff/43002/chrome/browser/instant/instant_browsertest.cc#newcode990 chrome/browser/instant/instant_browsertest.cc:990: EXPECT_EQ(2, browser()->tab_strip_model()->count()); On 2013/01/24 03:05:25, dougw wrote: > Any ...
7 years, 11 months ago (2013-01-24 03:50:08 UTC) #9
dougw
All inline comments addressed and browsertest added.
7 years, 11 months ago (2013-01-24 18:58:46 UTC) #10
sreeram
https://codereview.chromium.org/11644009/diff/31019/chrome/browser/instant/instant_extended_browsertest.cc File chrome/browser/instant/instant_extended_browsertest.cc (right): https://codereview.chromium.org/11644009/diff/31019/chrome/browser/instant/instant_extended_browsertest.cc#newcode86 chrome/browser/instant/instant_extended_browsertest.cc:86: IN_PROC_BROWSER_TEST_F(InstantExtendedTest, MiddleClickOnSuggestionOpensInNewTab) { 80 column limit https://codereview.chromium.org/11644009/diff/31019/chrome/browser/instant/instant_extended_browsertest.cc#newcode90 chrome/browser/instant/instant_extended_browsertest.cc:90: GURL ...
7 years, 11 months ago (2013-01-24 19:13:48 UTC) #11
dougw
https://codereview.chromium.org/11644009/diff/31019/chrome/browser/instant/instant_extended_browsertest.cc File chrome/browser/instant/instant_extended_browsertest.cc (right): https://codereview.chromium.org/11644009/diff/31019/chrome/browser/instant/instant_extended_browsertest.cc#newcode86 chrome/browser/instant/instant_extended_browsertest.cc:86: IN_PROC_BROWSER_TEST_F(InstantExtendedTest, MiddleClickOnSuggestionOpensInNewTab) { On 2013/01/24 19:13:48, sreeram wrote: > ...
7 years, 10 months ago (2013-02-06 21:42:11 UTC) #12
sreeram
https://codereview.chromium.org/11644009/diff/61001/chrome/browser/instant/instant_extended_browsertest.cc File chrome/browser/instant/instant_extended_browsertest.cc (right): https://codereview.chromium.org/11644009/diff/61001/chrome/browser/instant/instant_extended_browsertest.cc#newcode91 chrome/browser/instant/instant_extended_browsertest.cc:91: ASSERT_TRUE(browser()->tab_strip_model()->count() == 1); I'd just make this an EXPECT. ...
7 years, 10 months ago (2013-02-06 22:00:50 UTC) #13
dougw
https://codereview.chromium.org/11644009/diff/31019/chrome/browser/instant/instant_extended_browsertest.cc File chrome/browser/instant/instant_extended_browsertest.cc (right): https://codereview.chromium.org/11644009/diff/31019/chrome/browser/instant/instant_extended_browsertest.cc#newcode91 chrome/browser/instant/instant_extended_browsertest.cc:91: instant()->NavigateToURL(url, content::PAGE_TRANSITION_TYPED, NEW_BACKGROUND_TAB); On 2013/01/24 19:13:48, sreeram wrote: > ...
7 years, 10 months ago (2013-02-20 21:46:56 UTC) #14
sreeram
Bad merge? instant_client.{h,cc} shouldn't exist anymore.
7 years, 10 months ago (2013-02-20 22:30:36 UTC) #15
sreeram
Just a bunch of nits. This is very close to completion! Thanks for all the ...
7 years, 10 months ago (2013-02-20 22:53:32 UTC) #16
dougw
:) https://codereview.chromium.org/11644009/diff/94003/chrome/browser/instant/instant_controller.h File chrome/browser/instant/instant_controller.h (right): https://codereview.chromium.org/11644009/diff/94003/chrome/browser/instant/instant_controller.h#newcode193 chrome/browser/instant/instant_controller.h:193: FRIEND_TEST_ALL_PREFIXES(InstantExtendedTest, MiddleClickOnSuggestionOpensInNewTab); On 2013/02/20 22:53:32, sreeram wrote: > ...
7 years, 10 months ago (2013-02-20 23:35:11 UTC) #17
samarth
(just a couple of drive-by nits) https://codereview.chromium.org/11644009/diff/81003/chrome/browser/instant/instant_page.h File chrome/browser/instant/instant_page.h (right): https://codereview.chromium.org/11644009/diff/81003/chrome/browser/instant/instant_page.h#newcode80 chrome/browser/instant/instant_page.h:80: // Called when ...
7 years, 10 months ago (2013-02-20 23:55:16 UTC) #18
dougw
https://codereview.chromium.org/11644009/diff/81003/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js File chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js (right): https://codereview.chromium.org/11644009/diff/81003/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js#newcode227 chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js:227: getApiObjectHandle().navigateContentWindow( On 2013/02/20 23:55:16, samarth wrote: > nit: fits ...
7 years, 10 months ago (2013-02-21 00:49:00 UTC) #19
dougw
https://codereview.chromium.org/11644009/diff/81003/chrome/browser/instant/instant_page.h File chrome/browser/instant/instant_page.h (right): https://codereview.chromium.org/11644009/diff/81003/chrome/browser/instant/instant_page.h#newcode80 chrome/browser/instant/instant_page.h:80: // Called when the page wants to navigate to ...
7 years, 10 months ago (2013-02-21 00:54:29 UTC) #20
sreeram
lgtm https://codereview.chromium.org/11644009/diff/83022/chrome/browser/instant/instant_extended_browsertest.cc File chrome/browser/instant/instant_extended_browsertest.cc (right): https://codereview.chromium.org/11644009/diff/83022/chrome/browser/instant/instant_extended_browsertest.cc#newcode163 chrome/browser/instant/instant_extended_browsertest.cc:163: EXPECT_EQ(new_tab_contents->GetURL().spec(), instant_url_.spec()+"q=santa"); Nit: Spaces around "+". https://codereview.chromium.org/11644009/diff/83022/chrome/browser/instant/instant_extended_browsertest.cc#newcode166 chrome/browser/instant/instant_extended_browsertest.cc:166: ...
7 years, 10 months ago (2013-02-21 20:36:51 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dougw@chromium.org/11644009/83022
7 years, 10 months ago (2013-02-21 23:44:44 UTC) #22
commit-bot: I haz the power
Presubmit check for 11644009-83022 failed and returned exit status 1. INFO:root:Found 13 file(s). Running presubmit ...
7 years, 10 months ago (2013-02-21 23:45:01 UTC) #23
dougw
+palmer for render_messages.cc (added a new parameter to an IPC message for passing the desired ...
7 years, 10 months ago (2013-02-22 00:22:21 UTC) #24
Evan Stade
can you use webui::GetDispositionFromClick()? https://codereview.chromium.org/11644009/diff/83022/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js File chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js (right): https://codereview.chromium.org/11644009/diff/83022/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js#newcode7 chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js:7: // ========================================================== \n https://codereview.chromium.org/11644009/diff/83022/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js#newcode13 chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js:13: ...
7 years, 10 months ago (2013-02-22 02:43:49 UTC) #25
sky
LGTM
7 years, 10 months ago (2013-02-22 16:50:40 UTC) #26
dougw
We'd rather not modify navigateContentWindow (that would require a modification to the public API). Is ...
7 years, 10 months ago (2013-02-22 19:02:52 UTC) #27
Evan Stade
On 2013/02/22 19:02:52, dougw wrote: > We'd rather not modify navigateContentWindow (that would require a ...
7 years, 10 months ago (2013-02-22 21:48:51 UTC) #28
dougw
I added a file overview for local_omnibox_popup.js. This code supports omnibox behavior in offline mode ...
7 years, 10 months ago (2013-02-22 22:23:43 UTC) #29
Evan Stade
thanks https://codereview.chromium.org/11644009/diff/96005/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js File chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js (right): https://codereview.chromium.org/11644009/diff/96005/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js#newcode19 chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js:19: var WindowOpenDisposition_ = { why are there trailing ...
7 years, 10 months ago (2013-02-22 22:28:29 UTC) #30
dougw
https://codereview.chromium.org/11644009/diff/83022/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js File chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js (right): https://codereview.chromium.org/11644009/diff/83022/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js#newcode7 chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js:7: // ========================================================== On 2013/02/22 02:43:49, Evan Stade wrote: > ...
7 years, 10 months ago (2013-02-22 23:32:18 UTC) #31
Evan Stade
https://codereview.chromium.org/11644009/diff/83022/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js File chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js (right): https://codereview.chromium.org/11644009/diff/83022/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js#newcode13 chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js:13: var WindowOpenDisposition_ = { On 2013/02/22 23:32:18, dougw wrote: ...
7 years, 10 months ago (2013-02-23 00:16:26 UTC) #32
Evan Stade
lgtm
7 years, 10 months ago (2013-02-25 22:51:11 UTC) #33
palmer
lgtm
7 years, 10 months ago (2013-02-25 23:12:49 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dougw@chromium.org/11644009/96007
7 years, 10 months ago (2013-02-25 23:30:21 UTC) #35
commit-bot: I haz the power
Failed to apply patch for chrome/browser/instant/instant_page.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 10 months ago (2013-02-25 23:30:26 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dougw@chromium.org/11644009/97005
7 years, 10 months ago (2013-02-26 00:02:43 UTC) #37
commit-bot: I haz the power
7 years, 10 months ago (2013-02-26 03:07:09 UTC) #38
Message was sent while issue was closed.
Change committed as 184570

Powered by Google App Engine
This is Rietveld 408576698