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

Issue 969443003: [Document mode] Keep tab ID list in sync with Tab entries (Closed)

Created:
5 years, 9 months ago by gone
Modified:
5 years, 9 months ago
Reviewers:
Ted C, Maria
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Document mode] Keep tab ID list in sync with Tab entries It is possible to have one DocumentActivity create a Tab and add its ID to the DocumentTabModel, but get interrupted (somehow) before the Tab Entry is added to the DocumentTabModel. This results in getCount() returning the correct number of Tabs that exist but fail to have any information about the new Tab, resulting in getTabAt() returning |null|. We should instead keep the ID list and the Entry list be as in sync as possible, adding the Entry directly to the DocumentTabModel as soon as we let the DocumentTabModel know about the Tab's existence. Add new methods to tie the addTabId and updateEntry functions together via addTab, deprecate the old ones, and assert that we should never get into a bad state. Deprecated methods will be culled when the downstream patch lands. BUG=457427 Committed: https://crrev.com/7710ef5ff57f581f66dbbaad2dffe8c4a9048add Cr-Commit-Position: refs/heads/master@{#318576}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Deprecated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -2 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/DocumentTabModel.java View 1 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/DocumentTabModelImpl.java View 1 4 chunks +11 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/OffTheRecordDocumentTabModel.java View 1 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
gone
5 years, 9 months ago (2015-02-27 23:56:24 UTC) #2
Ted C
lgtm https://codereview.chromium.org/969443003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/DocumentTabModel.java File chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/DocumentTabModel.java (right): https://codereview.chromium.org/969443003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/DocumentTabModel.java#newcode168 chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/DocumentTabModel.java:168: @Deprecated @Deprecated makes @newt sad...do you want that? ...
5 years, 9 months ago (2015-02-28 00:31:57 UTC) #3
Maria
lgtm
5 years, 9 months ago (2015-02-28 00:34:16 UTC) #4
gone
https://codereview.chromium.org/969443003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/DocumentTabModel.java File chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/DocumentTabModel.java (right): https://codereview.chromium.org/969443003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/DocumentTabModel.java#newcode168 chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/DocumentTabModel.java:168: @Deprecated On 2015/02/28 00:31:57, Ted C wrote: > @Deprecated ...
5 years, 9 months ago (2015-02-28 00:47:34 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/969443003/20001
5 years, 9 months ago (2015-02-28 00:48:45 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/969443003/20001
5 years, 9 months ago (2015-02-28 00:59:44 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 9 months ago (2015-02-28 02:25:15 UTC) #12
commit-bot: I haz the power
5 years, 9 months ago (2015-02-28 02:26:21 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/7710ef5ff57f581f66dbbaad2dffe8c4a9048add
Cr-Commit-Position: refs/heads/master@{#318576}

Powered by Google App Engine
This is Rietveld 408576698