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

Issue 1687853002: Make AW state_serializer handle restoring also legacy format (Closed)

Created:
4 years, 10 months ago by sbergner
Modified:
4 years, 10 months ago
CC:
chromium-reviews, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make AW state_serializer handle restoring also legacy format This ensures that even if an app attempts to restore a state saved before upgrading WebView (using the new state version) the old version will still be successfully restored. BUG=584693 Committed: https://crrev.com/85ddabfdb82d0eb28addaf22f0f2c689cffeac46 Cr-Commit-Position: refs/heads/master@{#375418}

Patch Set 1 #

Patch Set 2 : Fix signed/unsigned int compile issue #

Total comments: 12

Patch Set 3 : Tweaks according to review suggestions #

Total comments: 4

Patch Set 4 : Minor fixups and adding additional header tests #

Patch Set 5 : Fix crashing unittests #

Patch Set 6 : Fix signed/unsigned int mismatch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -50 lines) Patch
M android_webview/native/state_serializer.h View 1 2 3 2 chunks +21 lines, -5 lines 0 comments Download
M android_webview/native/state_serializer.cc View 1 2 3 8 chunks +45 lines, -16 lines 0 comments Download
M android_webview/native/state_serializer_unittest.cc View 1 2 3 4 5 3 chunks +100 lines, -29 lines 0 comments Download

Messages

Total messages: 19 (6 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1687853002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1687853002/20001
4 years, 10 months ago (2016-02-10 15:30:08 UTC) #2
sbergner
4 years, 10 months ago (2016-02-10 15:36:44 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-10 16:09:22 UTC) #6
mnaganov (inactive)
The idea looks good, just have some questions for the implementation. https://codereview.chromium.org/1687853002/diff/20001/android_webview/native/state_serializer.cc File android_webview/native/state_serializer.cc (right): ...
4 years, 10 months ago (2016-02-10 16:37:45 UTC) #7
sbergner
https://codereview.chromium.org/1687853002/diff/20001/android_webview/native/state_serializer.cc File android_webview/native/state_serializer.cc (right): https://codereview.chromium.org/1687853002/diff/20001/android_webview/native/state_serializer.cc#newcode39 android_webview/native/state_serializer.cc:39: const uint32_t SUPPORTED_VERSIONS[] = { On 2016/02/10 16:37:45, mnaganov ...
4 years, 10 months ago (2016-02-11 07:23:28 UTC) #8
mnaganov (inactive)
https://codereview.chromium.org/1687853002/diff/20001/android_webview/native/state_serializer_unittest.cc File android_webview/native/state_serializer_unittest.cc (right): https://codereview.chromium.org/1687853002/diff/20001/android_webview/native/state_serializer_unittest.cc#newcode152 android_webview/native/state_serializer_unittest.cc:152: result = internal::RestoreNavigationEntryFromPickle(20130814, &iterator, On 2016/02/11 07:23:28, sbergner wrote: ...
4 years, 10 months ago (2016-02-11 17:21:48 UTC) #9
sbergner
https://codereview.chromium.org/1687853002/diff/20001/android_webview/native/state_serializer_unittest.cc File android_webview/native/state_serializer_unittest.cc (right): https://codereview.chromium.org/1687853002/diff/20001/android_webview/native/state_serializer_unittest.cc#newcode152 android_webview/native/state_serializer_unittest.cc:152: result = internal::RestoreNavigationEntryFromPickle(20130814, &iterator, On 2016/02/11 17:21:48, mnaganov wrote: ...
4 years, 10 months ago (2016-02-12 07:53:32 UTC) #10
sbergner
PTAL https://codereview.chromium.org/1687853002/diff/40001/android_webview/native/state_serializer_unittest.cc File android_webview/native/state_serializer_unittest.cc (right): https://codereview.chromium.org/1687853002/diff/40001/android_webview/native/state_serializer_unittest.cc#newcode67 android_webview/native/state_serializer_unittest.cc:67: return entry; On 2016/02/11 17:21:48, mnaganov wrote: > ...
4 years, 10 months ago (2016-02-12 13:00:10 UTC) #11
mnaganov (inactive)
LGTM Please fix the clang issue and you are good to go! https://codereview.chromium.org/1687853002/diff/20001/android_webview/native/state_serializer_unittest.cc File android_webview/native/state_serializer_unittest.cc ...
4 years, 10 months ago (2016-02-12 16:22:47 UTC) #12
sbergner
clang compile issue addressed, please take a look
4 years, 10 months ago (2016-02-15 06:39:10 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1687853002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1687853002/100001
4 years, 10 months ago (2016-02-15 07:12:55 UTC) #16
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 10 months ago (2016-02-15 07:41:05 UTC) #17
commit-bot: I haz the power
4 years, 10 months ago (2016-02-16 22:49:00 UTC) #19
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/85ddabfdb82d0eb28addaf22f0f2c689cffeac46
Cr-Commit-Position: refs/heads/master@{#375418}

Powered by Google App Engine
This is Rietveld 408576698