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

Side by Side Diff: sync/internal_api/public/base/invalidation.cc

Issue 16358024: Use a direct include of strings headers in rlz/, sandbox/, skia/, sql/, sync/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 "sync/internal_api/public/base/invalidation.h" 5 #include "sync/internal_api/public/base/invalidation.h"
6 6
7 #include <cstddef> 7 #include <cstddef>
8 #include "base/rand_util.h" 8 #include "base/rand_util.h"
9 #include "base/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 11
12 namespace syncer { 12 namespace syncer {
13 13
14 namespace { 14 namespace {
15 // Hopefully enough bytes for uniqueness. 15 // Hopefully enough bytes for uniqueness.
16 const size_t kBytesInHandle = 16; 16 const size_t kBytesInHandle = 16;
17 } // namespace 17 } // namespace
18 18
19 AckHandle AckHandle::CreateUnique() { 19 AckHandle AckHandle::CreateUnique() {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 bool Invalidation::ResetFromValue(const base::DictionaryValue& value) { 85 bool Invalidation::ResetFromValue(const base::DictionaryValue& value) {
86 const DictionaryValue* ack_handle_value = NULL; 86 const DictionaryValue* ack_handle_value = NULL;
87 return 87 return
88 value.GetString("payload", &payload) && 88 value.GetString("payload", &payload) &&
89 value.GetDictionary("ackHandle", &ack_handle_value) && 89 value.GetDictionary("ackHandle", &ack_handle_value) &&
90 ack_handle.ResetFromValue(*ack_handle_value); 90 ack_handle.ResetFromValue(*ack_handle_value);
91 } 91 }
92 92
93 } // namespace syncer 93 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/js_sync_manager_observer.cc ('k') | sync/internal_api/public/base/unique_position.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698