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

Issue 240273002: Close the ntp during startup when opening a link on Mac. (Closed)

Created:
6 years, 8 months ago by wjywbs
Modified:
6 years, 7 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Close the ntp during startup when opening a link on Mac. If there's only 1 tab and the tab is NTP, close this NTP tab and open all startup urls in new tabs, because the omnibar will stay focused if we load url in NTP tab. R=asvitkine@chromium.org,viettrungluu@chromium.org,thakis@chromium.org TBR=sergeyberezin@chromium.org BUG=43520 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266810

Patch Set 1 #

Total comments: 5

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : fix comment #

Total comments: 4

Patch Set 5 : #

Patch Set 6 : reorder test header #

Total comments: 6

Patch Set 7 : #

Total comments: 4

Patch Set 8 : #

Total comments: 5

Patch Set 9 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -14 lines) Patch
M chrome/browser/app_controller_mac.h View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/app_controller_mac.mm View 1 2 3 4 5 6 7 3 chunks +36 lines, -11 lines 0 comments Download
M chrome/browser/app_controller_mac_browsertest.mm View 1 2 3 4 5 6 7 8 3 chunks +102 lines, -0 lines 2 comments Download

Messages

Total messages: 44 (0 generated)
wjywbs
Please see the bug for details. PTAL. Thanks.
6 years, 8 months ago (2014-04-16 13:34:15 UTC) #1
Alexei Svitkine (slow)
Is it possible to create a browser test for this? I am worried that something ...
6 years, 8 months ago (2014-04-16 14:35:30 UTC) #2
wjywbs
On 2014/04/16 14:35:30, Alexei Svitkine wrote: > Is it possible to create a browser test ...
6 years, 8 months ago (2014-04-16 21:19:24 UTC) #3
wjywbs
Please take another look. I updated the logic and added a test. The test is ...
6 years, 8 months ago (2014-04-18 03:56:10 UTC) #4
Peter Kasting
This is precisely the sort of thing the InfoBar system is designed to avoid, because ...
6 years, 8 months ago (2014-04-18 20:48:55 UTC) #5
wjywbs
To my understanding, url are passed in as command line arguments in Windows: https://code.google.com/p/chromium/codesearch#chromium/src/chrome/browser/ui/startup/startup_browser_creator.cc&type=cs&sq=package:chromium&l=406&rcl=1397829457 The ...
6 years, 8 months ago (2014-04-18 22:21:58 UTC) #6
wjywbs
+viettrungluu You may have some better ideas since you mentioned and introduced this bug in ...
6 years, 8 months ago (2014-04-21 21:08:40 UTC) #7
Peter Kasting
On 2014/04/18 22:21:58, wjywbs wrote: > To my understanding, url are passed in as command ...
6 years, 8 months ago (2014-04-21 21:10:41 UTC) #8
wjywbs
On 2014/04/21 21:10:41, Peter Kasting wrote: > If you're in a case where we're opening ...
6 years, 8 months ago (2014-04-21 22:11:58 UTC) #9
Peter Kasting
On 2014/04/21 22:11:58, wjywbs wrote: > On 2014/04/21 21:10:41, Peter Kasting wrote: > > If ...
6 years, 8 months ago (2014-04-21 22:14:11 UTC) #10
wjywbs
I removed the infobar changes. PTAL. Thanks.
6 years, 8 months ago (2014-04-22 06:38:10 UTC) #11
Alexei Svitkine (slow)
https://codereview.chromium.org/240273002/diff/60001/chrome/browser/app_controller_mac.mm File chrome/browser/app_controller_mac.mm (right): https://codereview.chromium.org/240273002/diff/60001/chrome/browser/app_controller_mac.mm#newcode693 chrome/browser/app_controller_mac.mm:693: // startup urls in new tabs, because the omnibar ...
6 years, 8 months ago (2014-04-22 15:42:00 UTC) #12
wjywbs
https://codereview.chromium.org/240273002/diff/60001/chrome/browser/app_controller_mac.mm File chrome/browser/app_controller_mac.mm (right): https://codereview.chromium.org/240273002/diff/60001/chrome/browser/app_controller_mac.mm#newcode710 chrome/browser/app_controller_mac.mm:710: startupContent->GetVisibleURL() == GURL(chrome::kChromeUINewTabURL)) { On 2014/04/22 15:42:00, Alexei Svitkine ...
6 years, 8 months ago (2014-04-22 21:51:50 UTC) #13
Alexei Svitkine (slow)
On 2014/04/22 21:51:50, wjywbs wrote: > https://codereview.chromium.org/240273002/diff/60001/chrome/browser/app_controller_mac.mm > File chrome/browser/app_controller_mac.mm (right): > > https://codereview.chromium.org/240273002/diff/60001/chrome/browser/app_controller_mac.mm#newcode710 > ...
6 years, 8 months ago (2014-04-23 14:42:42 UTC) #14
wjywbs
On 2014/04/23 14:42:42, Alexei Svitkine wrote: > Did you also try it with "Continue where ...
6 years, 8 months ago (2014-04-24 00:36:06 UTC) #15
Alexei Svitkine (slow)
On 2014/04/24 00:36:06, wjywbs wrote: > On 2014/04/23 14:42:42, Alexei Svitkine wrote: > > Did ...
6 years, 8 months ago (2014-04-24 18:59:20 UTC) #16
Alexei Svitkine (slow)
https://codereview.chromium.org/240273002/diff/90001/chrome/browser/app_controller_mac.mm File chrome/browser/app_controller_mac.mm (right): https://codereview.chromium.org/240273002/diff/90001/chrome/browser/app_controller_mac.mm#newcode685 chrome/browser/app_controller_mac.mm:685: // TODO(viettrungluu): This is very temporary, since this should ...
6 years, 8 months ago (2014-04-24 18:59:28 UTC) #17
wjywbs
I fixed the code per comments. PTAL, thanks. https://codereview.chromium.org/240273002/diff/110001/chrome/browser/app_controller_mac_browsertest.mm File chrome/browser/app_controller_mac_browsertest.mm (right): https://codereview.chromium.org/240273002/diff/110001/chrome/browser/app_controller_mac_browsertest.mm#newcode70 chrome/browser/app_controller_mac_browsertest.mm:70: [NSString ...
6 years, 8 months ago (2014-04-24 21:26:45 UTC) #18
Alexei Svitkine (slow)
https://codereview.chromium.org/240273002/diff/110001/chrome/browser/app_controller_mac.mm File chrome/browser/app_controller_mac.mm (right): https://codereview.chromium.org/240273002/diff/110001/chrome/browser/app_controller_mac.mm#newcode685 chrome/browser/app_controller_mac.mm:685: // On Mac, the URLs are passed in via ...
6 years, 8 months ago (2014-04-24 21:39:23 UTC) #19
wjywbs
I updated the code. PTAL, thanks.
6 years, 8 months ago (2014-04-24 21:50:27 UTC) #20
Alexei Svitkine (slow)
https://codereview.chromium.org/240273002/diff/130001/chrome/browser/app_controller_mac_browsertest.mm File chrome/browser/app_controller_mac_browsertest.mm (right): https://codereview.chromium.org/240273002/diff/130001/chrome/browser/app_controller_mac_browsertest.mm#newcode40 chrome/browser/app_controller_mac_browsertest.mm:40: GURL open_shortcut_url = GURL::EmptyGURL(); Nit: g_open_shortcut_url https://codereview.chromium.org/240273002/diff/130001/chrome/browser/app_controller_mac_browsertest.mm#newcode54 chrome/browser/app_controller_mac_browsertest.mm:54: AppController* ...
6 years, 8 months ago (2014-04-25 14:47:07 UTC) #21
Alexei Svitkine (slow)
https://codereview.chromium.org/240273002/diff/130001/chrome/browser/app_controller_mac_browsertest.mm File chrome/browser/app_controller_mac_browsertest.mm (right): https://codereview.chromium.org/240273002/diff/130001/chrome/browser/app_controller_mac_browsertest.mm#newcode72 chrome/browser/app_controller_mac_browsertest.mm:72: forKeyword:keyDirectObject]; On 2014/04/25 14:47:08, Alexei Svitkine wrote: > Nit: ...
6 years, 8 months ago (2014-04-25 14:47:53 UTC) #22
wjywbs
I updated the test. PTAL, thanks.
6 years, 8 months ago (2014-04-25 16:18:27 UTC) #23
Alexei Svitkine (slow)
lgtm Can you also file the bug for edge case this is not handling (i.e. ...
6 years, 8 months ago (2014-04-25 16:29:40 UTC) #24
wjywbs
On 2014/04/25 16:29:40, Alexei Svitkine wrote: > lgtm > > Can you also file the ...
6 years, 8 months ago (2014-04-25 16:39:39 UTC) #25
wjywbs
The CQ bit was checked by wjywbs@gmail.com
6 years, 8 months ago (2014-04-25 16:39:46 UTC) #26
wjywbs
This patch does not affect the behavior of "Continue where you left off". I just ...
6 years, 8 months ago (2014-04-25 17:37:29 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wjywbs@gmail.com/240273002/150001
6 years, 8 months ago (2014-04-25 22:13:18 UTC) #28
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-25 23:19:55 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on chromium_presubmit
6 years, 8 months ago (2014-04-25 23:19:55 UTC) #30
wjywbs
thakis@: Missing owner LGTM. Thanks.
6 years, 8 months ago (2014-04-26 02:32:19 UTC) #31
Nico
lgtm https://codereview.chromium.org/240273002/diff/150001/chrome/browser/app_controller_mac_browsertest.mm File chrome/browser/app_controller_mac_browsertest.mm (right): https://codereview.chromium.org/240273002/diff/150001/chrome/browser/app_controller_mac_browsertest.mm#newcode41 chrome/browser/app_controller_mac_browsertest.mm:41: GURL g_open_shortcut_url = GURL::EmptyGURL(); Can you pass this ...
6 years, 7 months ago (2014-04-28 21:17:21 UTC) #32
wjywbs
https://codereview.chromium.org/240273002/diff/150001/chrome/browser/app_controller_mac_browsertest.mm File chrome/browser/app_controller_mac_browsertest.mm (right): https://codereview.chromium.org/240273002/diff/150001/chrome/browser/app_controller_mac_browsertest.mm#newcode41 chrome/browser/app_controller_mac_browsertest.mm:41: GURL g_open_shortcut_url = GURL::EmptyGURL(); On 2014/04/28 21:17:21, Nico wrote: ...
6 years, 7 months ago (2014-04-28 21:24:01 UTC) #33
wjywbs
The CQ bit was checked by wjywbs@gmail.com
6 years, 7 months ago (2014-04-28 22:00:34 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wjywbs@gmail.com/240273002/150001
6 years, 7 months ago (2014-04-28 22:01:21 UTC) #35
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-28 22:42:31 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on chromium_presubmit
6 years, 7 months ago (2014-04-28 22:42:32 UTC) #37
wjywbs
The CQ bit was checked by wjywbs@gmail.com
6 years, 7 months ago (2014-04-28 23:35:22 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wjywbs@gmail.com/240273002/150001
6 years, 7 months ago (2014-04-28 23:35:46 UTC) #39
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-29 00:22:25 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_rel
6 years, 7 months ago (2014-04-29 00:22:26 UTC) #41
wjywbs
The CQ bit was checked by wjywbs@gmail.com
6 years, 7 months ago (2014-04-29 00:34:02 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wjywbs@gmail.com/240273002/150001
6 years, 7 months ago (2014-04-29 00:34:54 UTC) #43
commit-bot: I haz the power
6 years, 7 months ago (2014-04-29 09:45:42 UTC) #44
Message was sent while issue was closed.
Change committed as 266810

Powered by Google App Engine
This is Rietveld 408576698