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

Side by Side Diff: sync/internal_api/public/sessions/sync_source_info.cc

Issue 17034006: Add base namespace to more values in sync and elsewhere. (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 (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 "sync/internal_api/public/sessions/sync_source_info.h" 5 #include "sync/internal_api/public/sessions/sync_source_info.h"
6 6
7 #include "base/values.h" 7 #include "base/values.h"
8 #include "sync/protocol/proto_enum_conversions.h" 8 #include "sync/protocol/proto_enum_conversions.h"
9 9
10 namespace syncer { 10 namespace syncer {
11 namespace sessions { 11 namespace sessions {
12 12
13 SyncSourceInfo::SyncSourceInfo() 13 SyncSourceInfo::SyncSourceInfo()
14 : updates_source(sync_pb::GetUpdatesCallerInfo::UNKNOWN) {} 14 : updates_source(sync_pb::GetUpdatesCallerInfo::UNKNOWN) {}
15 15
16 SyncSourceInfo::SyncSourceInfo(const ModelTypeInvalidationMap& t) 16 SyncSourceInfo::SyncSourceInfo(const ModelTypeInvalidationMap& t)
17 : updates_source(sync_pb::GetUpdatesCallerInfo::UNKNOWN), types(t) {} 17 : updates_source(sync_pb::GetUpdatesCallerInfo::UNKNOWN), types(t) {}
18 18
19 SyncSourceInfo::SyncSourceInfo( 19 SyncSourceInfo::SyncSourceInfo(
20 const sync_pb::GetUpdatesCallerInfo::GetUpdatesSource& u, 20 const sync_pb::GetUpdatesCallerInfo::GetUpdatesSource& u,
21 const ModelTypeInvalidationMap& t) 21 const ModelTypeInvalidationMap& t)
22 : updates_source(u), types(t) {} 22 : updates_source(u), types(t) {}
23 23
24 SyncSourceInfo::~SyncSourceInfo() {} 24 SyncSourceInfo::~SyncSourceInfo() {}
25 25
26 DictionaryValue* SyncSourceInfo::ToValue() const { 26 base::DictionaryValue* SyncSourceInfo::ToValue() const {
27 DictionaryValue* value = new DictionaryValue(); 27 base::DictionaryValue* value = new base::DictionaryValue();
28 value->SetString("updatesSource", 28 value->SetString("updatesSource",
29 GetUpdatesSourceString(updates_source)); 29 GetUpdatesSourceString(updates_source));
30 value->Set("types", ModelTypeInvalidationMapToValue(types)); 30 value->Set("types", ModelTypeInvalidationMapToValue(types));
31 return value; 31 return value;
32 } 32 }
33 33
34 } // namespace sessions 34 } // namespace sessions
35 } // namespace syncer 35 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698