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

Issue 738693002: Opening new "about:blank" tab if all tabs are closed in tab switcher mode. (Closed)

Created:
6 years, 1 month ago by divya.bansal
Modified:
6 years, 1 month ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Opening new "about:blank" tab if all tabs are closed in tab switcher mode. Currently in tab switcher mode if we remove all the tabs and tap on Url bar to open new link, suggestion popup doesnot appear. In these changes, after all tabs are closed a new "about:blank" tab will be opened. Signed-off-by: divyabansal <divya.bansal@samsung.com>; BUG=433808 Committed: https://crrev.com/bd59f3e5f60a667ab5ee93d074e1b0575a8b54d9 Cr-Commit-Position: refs/heads/master@{#305212}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Review comment changes #

Total comments: 6

Patch Set 3 : Review changes #

Patch Set 4 : Review changes #

Patch Set 5 : Correcting indentation #

Total comments: 4

Patch Set 6 : review changes #

Total comments: 2

Patch Set 7 : Review changes #

Patch Set 8 : #

Patch Set 9 : Test case changes #

Patch Set 10 : Test case changes #

Patch Set 11 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -1 line) Patch
M chrome/android/javatests/src/org/chromium/chrome/browser/test/ModalDialogTest.java View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java View 1 2 3 4 5 6 7 8 9 10 3 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 49 (12 generated)
divya.bansal
@Bernhard PTAL
6 years, 1 month ago (2014-11-18 06:34:10 UTC) #2
Bernhard Bauer
https://codereview.chromium.org/738693002/diff/1/chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java File chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java (right): https://codereview.chromium.org/738693002/diff/1/chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java#newcode60 chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java:60: setCurrentTab(mCurrentTab); Wait, why are we doing this?
6 years, 1 month ago (2014-11-18 09:05:49 UTC) #3
divya.bansal
@Bernhard Please suggest. https://codereview.chromium.org/738693002/diff/1/chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java File chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java (right): https://codereview.chromium.org/738693002/diff/1/chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java#newcode60 chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java:60: setCurrentTab(mCurrentTab); On 2014/11/18 09:05:48, Bernhard Bauer ...
6 years, 1 month ago (2014-11-18 09:20:19 UTC) #4
Bernhard Bauer
https://codereview.chromium.org/738693002/diff/1/chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java File chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java (right): https://codereview.chromium.org/738693002/diff/1/chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java#newcode60 chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java:60: setCurrentTab(mCurrentTab); On 2014/11/18 09:20:19, divya.bansal wrote: > On 2014/11/18 ...
6 years, 1 month ago (2014-11-18 09:27:58 UTC) #5
divya.bansal
@Bernhard PTAL https://codereview.chromium.org/738693002/diff/1/chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java File chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java (right): https://codereview.chromium.org/738693002/diff/1/chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java#newcode60 chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java:60: setCurrentTab(mCurrentTab); On 2014/11/18 09:27:58, Bernhard Bauer wrote: ...
6 years, 1 month ago (2014-11-19 09:51:31 UTC) #6
Bernhard Bauer
https://codereview.chromium.org/738693002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelBase.java File chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelBase.java (right): https://codereview.chromium.org/738693002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelBase.java#newcode456 chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelBase.java:456: for (TabModelObserver obs : mObservers) obs.didCloseTab(tab); Why this change? ...
6 years, 1 month ago (2014-11-19 09:57:34 UTC) #7
divya.bansal
@Bernhard Please suggest https://codereview.chromium.org/738693002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelBase.java File chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelBase.java (right): https://codereview.chromium.org/738693002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelBase.java#newcode456 chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelBase.java:456: for (TabModelObserver obs : mObservers) obs.didCloseTab(tab); ...
6 years, 1 month ago (2014-11-19 10:04:24 UTC) #8
Bernhard Bauer
https://codereview.chromium.org/738693002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelBase.java File chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelBase.java (right): https://codereview.chromium.org/738693002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelBase.java#newcode456 chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelBase.java:456: for (TabModelObserver obs : mObservers) obs.didCloseTab(tab); On 2014/11/19 10:04:24, ...
6 years, 1 month ago (2014-11-19 10:06:45 UTC) #9
divya.bansal
https://codereview.chromium.org/738693002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelBase.java File chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelBase.java (right): https://codereview.chromium.org/738693002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelBase.java#newcode456 chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelBase.java:456: for (TabModelObserver obs : mObservers) obs.didCloseTab(tab); On 2014/11/19 10:06:45, ...
6 years, 1 month ago (2014-11-19 10:09:39 UTC) #10
Bernhard Bauer
https://codereview.chromium.org/738693002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelBase.java File chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelBase.java (right): https://codereview.chromium.org/738693002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelBase.java#newcode456 chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelBase.java:456: for (TabModelObserver obs : mObservers) obs.didCloseTab(tab); On 2014/11/19 10:09:39, ...
6 years, 1 month ago (2014-11-19 10:13:53 UTC) #11
divya.bansal
PTAL https://codereview.chromium.org/738693002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelBase.java File chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelBase.java (right): https://codereview.chromium.org/738693002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelBase.java#newcode456 chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelBase.java:456: for (TabModelObserver obs : mObservers) obs.didCloseTab(tab); On 2014/11/19 ...
6 years, 1 month ago (2014-11-19 12:07:57 UTC) #12
Bernhard Bauer
https://codereview.chromium.org/738693002/diff/60002/chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java File chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java (right): https://codereview.chromium.org/738693002/diff/60002/chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java#newcode131 chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java:131: if (mTabModelSelector.getCurrentModel().getCount() == 1) { This also changes the ...
6 years, 1 month ago (2014-11-19 12:13:40 UTC) #13
divya.bansal
Please suggest https://codereview.chromium.org/738693002/diff/60002/chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java File chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java (right): https://codereview.chromium.org/738693002/diff/60002/chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java#newcode131 chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java:131: if (mTabModelSelector.getCurrentModel().getCount() == 1) { On 2014/11/19 ...
6 years, 1 month ago (2014-11-19 12:25:49 UTC) #14
Bernhard Bauer
https://codereview.chromium.org/738693002/diff/60002/chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java File chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java (right): https://codereview.chromium.org/738693002/diff/60002/chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java#newcode131 chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java:131: if (mTabModelSelector.getCurrentModel().getCount() == 1) { On 2014/11/19 12:25:49, divya.bansal ...
6 years, 1 month ago (2014-11-19 12:54:39 UTC) #15
divya.bansal
@Bernhard PTAL https://codereview.chromium.org/738693002/diff/60002/chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java File chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java (right): https://codereview.chromium.org/738693002/diff/60002/chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java#newcode131 chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java:131: if (mTabModelSelector.getCurrentModel().getCount() == 1) { On 2014/11/19 ...
6 years, 1 month ago (2014-11-19 14:48:39 UTC) #16
Bernhard Bauer
https://codereview.chromium.org/738693002/diff/80001/chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java File chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java (right): https://codereview.chromium.org/738693002/diff/80001/chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java#newcode60 chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java:60: if (mTabModelSelector.getCurrentModel().getCount() == 1) You can only leave out ...
6 years, 1 month ago (2014-11-19 15:51:18 UTC) #17
divya.bansal
@Bernhard PTAL https://codereview.chromium.org/738693002/diff/80001/chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java File chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java (right): https://codereview.chromium.org/738693002/diff/80001/chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java#newcode60 chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java:60: if (mTabModelSelector.getCurrentModel().getCount() == 1) On 2014/11/19 15:51:18, ...
6 years, 1 month ago (2014-11-20 03:54:14 UTC) #18
Bernhard Bauer
LGTM As a general reminder though, ChromeShell is not meant to be a generic browser. ...
6 years, 1 month ago (2014-11-20 09:57:51 UTC) #19
divya.bansal
On 2014/11/20 09:57:51, Bernhard Bauer wrote: > LGTM > > As a general reminder though, ...
6 years, 1 month ago (2014-11-20 10:35:13 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/738693002/100001
6 years, 1 month ago (2014-11-20 10:36:11 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/30184)
6 years, 1 month ago (2014-11-20 11:13:57 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/738693002/100001
6 years, 1 month ago (2014-11-20 11:49:53 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/30196)
6 years, 1 month ago (2014-11-20 12:32:12 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/738693002/100001
6 years, 1 month ago (2014-11-21 04:04:28 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/30606)
6 years, 1 month ago (2014-11-21 04:46:41 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/738693002/120001
6 years, 1 month ago (2014-11-21 09:43:49 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/30666)
6 years, 1 month ago (2014-11-21 10:19:41 UTC) #36
Bernhard Bauer
On 2014/11/21 10:19:41, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 1 month ago (2014-11-21 10:27:12 UTC) #37
divya.bansal
On 2014/11/21 10:27:12, Bernhard Bauer wrote: > On 2014/11/21 10:19:41, I haz the power (commit-bot) ...
6 years, 1 month ago (2014-11-21 11:07:48 UTC) #38
divya.bansal
On 2014/11/21 11:07:48, divya.bansal wrote: > On 2014/11/21 10:27:12, Bernhard Bauer wrote: > > On ...
6 years, 1 month ago (2014-11-21 11:07:59 UTC) #39
Bernhard Bauer
lgtm
6 years, 1 month ago (2014-11-21 11:24:08 UTC) #40
divya.bansal
On 2014/11/21 11:24:08, Bernhard Bauer wrote: > lgtm @Bernahard Thanks for the review.
6 years, 1 month ago (2014-11-21 12:06:23 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/738693002/160001
6 years, 1 month ago (2014-11-21 12:07:10 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/36232)
6 years, 1 month ago (2014-11-21 12:15:15 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/738693002/180001
6 years, 1 month ago (2014-11-21 13:42:06 UTC) #47
commit-bot: I haz the power
Committed patchset #11 (id:180001)
6 years, 1 month ago (2014-11-21 14:23:08 UTC) #48
commit-bot: I haz the power
6 years, 1 month ago (2014-11-21 14:24:34 UTC) #49
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/bd59f3e5f60a667ab5ee93d074e1b0575a8b54d9
Cr-Commit-Position: refs/heads/master@{#305212}

Powered by Google App Engine
This is Rietveld 408576698