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

Unified Diff: content/public/common/page_state.cc

Issue 2181753002: Simplify EncodePageState to return no value. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/page_state_serialization_unittest.cc ('k') | content/renderer/history_serialization.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/page_state.cc
diff --git a/content/public/common/page_state.cc b/content/public/common/page_state.cc
index b082d54c91d548b4d6b77f81a458f3c23a887a5a..01cbedbedb7a394d39a81aa9d5b06f832c593259 100644
--- a/content/public/common/page_state.cc
+++ b/content/public/common/page_state.cc
@@ -32,9 +32,7 @@ void ToFilePathVector(const std::vector<base::NullableString16>& input,
PageState ToPageState(const ExplodedPageState& state) {
std::string encoded_data;
- if (!EncodePageState(state, &encoded_data))
- return PageState();
-
+ EncodePageState(state, &encoded_data);
return PageState::CreateFromEncodedData(encoded_data);
}
« no previous file with comments | « content/common/page_state_serialization_unittest.cc ('k') | content/renderer/history_serialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698