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

Side by Side Diff: android_webview/native/state_serializer.cc

Issue 100453010: Add base:: to string16s in android_webview/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "android_webview/native/state_serializer.h" 5 #include "android_webview/native/state_serializer.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "base/pickle.h" 10 #include "base/pickle.h"
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 return false; 219 return false;
220 if (!iterator->ReadInt(&policy)) 220 if (!iterator->ReadInt(&policy))
221 return false; 221 return false;
222 222
223 referrer.url = GURL(referrer_url); 223 referrer.url = GURL(referrer_url);
224 referrer.policy = static_cast<blink::WebReferrerPolicy>(policy); 224 referrer.policy = static_cast<blink::WebReferrerPolicy>(policy);
225 entry->SetReferrer(referrer); 225 entry->SetReferrer(referrer);
226 } 226 }
227 227
228 { 228 {
229 string16 title; 229 base::string16 title;
230 if (!iterator->ReadString16(&title)) 230 if (!iterator->ReadString16(&title))
231 return false; 231 return false;
232 entry->SetTitle(title); 232 entry->SetTitle(title);
233 } 233 }
234 234
235 { 235 {
236 string content_state; 236 string content_state;
237 if (!iterator->ReadString(&content_state)) 237 if (!iterator->ReadString(&content_state))
238 return false; 238 return false;
239 entry->SetPageState( 239 entry->SetPageState(
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 return false; 281 return false;
282 entry->SetHttpStatusCode(http_status_code); 282 entry->SetHttpStatusCode(http_status_code);
283 } 283 }
284 284
285 return true; 285 return true;
286 } 286 }
287 287
288 } // namespace internal 288 } // namespace internal
289 289
290 } // namespace android_webview 290 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/native/aw_web_contents_delegate.cc ('k') | android_webview/native/state_serializer_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698