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

Issue 2181753002: Simplify EncodePageState to return no value. (Closed)

Created:
4 years, 5 months ago by Charlie Reis
Modified:
4 years, 5 months ago
Reviewers:
nasko
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org, mlamouri+watch-content_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Simplify EncodePageState to return no value. It was never able to return false, which led to unnecessary error case handling. Removing the return value makes reasoning about invalid PageStates easier. BUG=568703 TEST=No behavior change. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/20ada69560e72b05b08787483c442addf37624ee Cr-Commit-Position: refs/heads/master@{#407552}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -22 lines) Patch
M content/browser/frame_host/navigation_entry_impl.cc View 2 chunks +3 lines, -5 lines 0 comments Download
M content/common/page_state_serialization.h View 1 chunk +1 line, -1 line 0 comments Download
M content/common/page_state_serialization.cc View 1 chunk +1 line, -2 lines 0 comments Download
M content/common/page_state_serialization_unittest.cc View 5 chunks +5 lines, -5 lines 0 comments Download
M content/public/common/page_state.cc View 1 chunk +1 line, -3 lines 0 comments Download
M content/renderer/history_serialization.cc View 2 chunks +2 lines, -6 lines 0 comments Download

Messages

Total messages: 13 (8 generated)
Charlie Reis
There should be no behavior change here, but PageState code will be easier to reason ...
4 years, 5 months ago (2016-07-25 18:31:13 UTC) #5
nasko
LGTM
4 years, 5 months ago (2016-07-25 18:39:30 UTC) #6
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/2181753002/1
4 years, 5 months ago (2016-07-25 19:50:15 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 5 months ago (2016-07-25 19:54:41 UTC) #11
commit-bot: I haz the power
4 years, 5 months ago (2016-07-25 19:59:35 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/20ada69560e72b05b08787483c442addf37624ee
Cr-Commit-Position: refs/heads/master@{#407552}

Powered by Google App Engine
This is Rietveld 408576698