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

Issue 2757013002: [Android] Do not restore NTPs from disk unless they are selected. (Closed)

Created:
3 years, 9 months ago by Ted C
Modified:
3 years, 9 months ago
Reviewers:
gone
CC:
chromium-reviews, agrieve+watch_chromium.org, David Trainor- moved to gerrit
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android] Do not restore NTPs from disk unless they are selected. This also disables saving tab states for NTPs as they are not needed for tab restore anyway (the metadata file will restore based on URL if the state file is missing and can handle the NTP selected case anyway). Sidenote...we should consider not persisting tab states to disk that have no navigations nor any web contents state. BUG=702762 Review-Url: https://codereview.chromium.org/2757013002 Cr-Commit-Position: refs/heads/master@{#458241} Committed: https://chromium.googlesource.com/chromium/src/+/3c7d798abb3a42da2bdaeeb0497a47575fda9bd2

Patch Set 1 #

Total comments: 4

Patch Set 2 : clean up silly mistakes #

Patch Set 3 : Fix test failure that relied on NTP being saved #

Unified diffs Side-by-side diffs Delta from patch set Stats (+287 lines, -32 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabPersistentStore.java View 11 chunks +64 lines, -31 lines 0 comments Download
M chrome/android/java_sources.gni View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/TabsTest.java View 1 2 2 chunks +8 lines, -1 line 0 comments Download
A chrome/android/junit/src/org/chromium/chrome/browser/tabmodel/TabPersistentStoreUnitTest.java View 1 1 chunk +214 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (8 generated)
Ted C
PTAL (dfalcantara for review, dtrainor for FYI)
3 years, 9 months ago (2017-03-17 20:28:34 UTC) #2
gone
lgtm https://codereview.chromium.org/2757013002/diff/1/chrome/android/junit/src/org/chromium/chrome/browser/tabmodel/TabPersistentStoreUnitTest.java File chrome/android/junit/src/org/chromium/chrome/browser/tabmodel/TabPersistentStoreUnitTest.java (right): https://codereview.chromium.org/2757013002/diff/1/chrome/android/junit/src/org/chromium/chrome/browser/tabmodel/TabPersistentStoreUnitTest.java#newcode101 chrome/android/junit/src/org/chromium/chrome/browser/tabmodel/TabPersistentStoreUnitTest.java:101: when(normalTabModel.index()).thenReturn(TabList.INVALID_TAB_INDEX); Use the ones you set up in ...
3 years, 9 months ago (2017-03-20 17:49:04 UTC) #3
Ted C
https://codereview.chromium.org/2757013002/diff/1/chrome/android/junit/src/org/chromium/chrome/browser/tabmodel/TabPersistentStoreUnitTest.java File chrome/android/junit/src/org/chromium/chrome/browser/tabmodel/TabPersistentStoreUnitTest.java (right): https://codereview.chromium.org/2757013002/diff/1/chrome/android/junit/src/org/chromium/chrome/browser/tabmodel/TabPersistentStoreUnitTest.java#newcode101 chrome/android/junit/src/org/chromium/chrome/browser/tabmodel/TabPersistentStoreUnitTest.java:101: when(normalTabModel.index()).thenReturn(TabList.INVALID_TAB_INDEX); On 2017/03/20 17:49:03, dfalcantara (load balance plz) wrote: ...
3 years, 9 months ago (2017-03-20 17:55:54 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2757013002/20001
3 years, 9 months ago (2017-03-20 17:56:34 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/253588)
3 years, 9 months ago (2017-03-20 19:22:13 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2757013002/40001
3 years, 9 months ago (2017-03-20 20:56:02 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/3c7d798abb3a42da2bdaeeb0497a47575fda9bd2
3 years, 9 months ago (2017-03-20 23:41:52 UTC) #15
Dmitry Titov
3 years, 9 months ago (2017-03-21 00:20:03 UTC) #16
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/2766493002/ by dimich@chromium.org.

The reason for reverting is: Broke the compile:

https://build.chromium.org/p/chromium/builders/Android/builds/69977

.

Powered by Google App Engine
This is Rietveld 408576698