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

Issue 2138503002: Creating contents state byte array before opening stream (Closed)

Created:
4 years, 5 months ago by andrhung
Modified:
4 years, 5 months ago
Reviewers:
dtrainor, Peter Wen, gone
CC:
chromium-reviews, David Trainor- moved to gerrit, avayvod+watch_chromium.org, dominickn+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@lkgr
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Creating contents state byte array before opening stream Changed TabState.saveState to be able to safely write mapped byte buffers by opening FileOutputStream after retrieving buffer contents. Removed unnecessary call to FileChannel.write which is not guaranteed to write all bytes. BUG=626815 Committed: https://crrev.com/b6f7a7a894bbced31fb74e75f14364998a610bdc Cr-Commit-Position: refs/heads/master@{#405299}

Patch Set 1 : creating contents state byte array before opening stream #

Total comments: 3

Patch Set 2 : renamed variables, added javadoc, updated AUTHORS #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -72 lines) Patch
M AUTHORS View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/TabState.java View 2 chunks +42 lines, -35 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabPersistentStore.java View 1 chunk +1 line, -7 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabPersister.java View 3 chunks +1 line, -18 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java View 3 chunks +1 line, -12 lines 0 comments Download
M chrome/android/java_sources.gni View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/android/junit/src/org/chromium/chrome/browser/tabstate/TabStateUnitTest.java View 1 1 chunk +107 lines, -0 lines 1 comment Download

Messages

Total messages: 22 (8 generated)
gone
Was this ready to review? Saw this in my review queue but didn't get an ...
4 years, 5 months ago (2016-07-11 17:50:57 UTC) #3
andrhung
This change is to fix the issue we discussed regarding saving TabStates with mapped byte ...
4 years, 5 months ago (2016-07-11 17:58:01 UTC) #4
andrhung
On 2016/07/11 17:50:57, dfalcantara wrote: > Was this ready to review? Saw this in my ...
4 years, 5 months ago (2016-07-11 17:58:26 UTC) #5
Peter Wen
I'll take a look at this today then. Somehow publish email went into spam. :/
4 years, 5 months ago (2016-07-11 18:03:52 UTC) #6
Peter Wen
lgtm % nits This looks really good. At first I was concerned that we always ...
4 years, 5 months ago (2016-07-12 13:57:16 UTC) #7
Peter Wen
Also, you'll need to fix presubmit and do this: andrhung@amazon.com is not in AUTHORS file. ...
4 years, 5 months ago (2016-07-12 13:59:17 UTC) #8
andrhung
On 2016/07/12 13:59:17, Peter Wen wrote: > Also, you'll need to fix presubmit and do ...
4 years, 5 months ago (2016-07-12 20:21:32 UTC) #9
gone
lgtm https://chromiumcodereview.appspot.com/2138503002/diff/20001/chrome/android/junit/src/org/chromium/chrome/browser/tabstate/TabStateUnitTest.java File chrome/android/junit/src/org/chromium/chrome/browser/tabstate/TabStateUnitTest.java (right): https://chromiumcodereview.appspot.com/2138503002/diff/20001/chrome/android/junit/src/org/chromium/chrome/browser/tabstate/TabStateUnitTest.java#newcode60 chrome/android/junit/src/org/chromium/chrome/browser/tabstate/TabStateUnitTest.java:60: FileChannel.MapMode.READ_ONLY, fileInputStream.getChannel().position(), nit: indentation is slightly off here
4 years, 5 months ago (2016-07-13 17:03:08 UTC) #10
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/2138503002/20001
4 years, 5 months ago (2016-07-13 17:19:36 UTC) #13
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/103271)
4 years, 5 months ago (2016-07-13 18:46:11 UTC) #15
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/2138503002/20001
4 years, 5 months ago (2016-07-13 19:48:35 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-07-13 21:39:13 UTC) #19
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-13 21:39:39 UTC) #20
commit-bot: I haz the power
4 years, 5 months ago (2016-07-13 21:41:28 UTC) #22
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b6f7a7a894bbced31fb74e75f14364998a610bdc
Cr-Commit-Position: refs/heads/master@{#405299}

Powered by Google App Engine
This is Rietveld 408576698