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

Side by Side Diff: components/sync_sessions/synced_session.cc

Issue 2343463003: [Sync] Fix namespaces for the sync_sessions component. (Closed)
Patch Set: Fix gn. Created 4 years, 3 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
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 "components/sync_sessions/synced_session.h" 5 #include "components/sync_sessions/synced_session.h"
6 6
7 #include "base/stl_util.h" 7 #include "base/stl_util.h"
8 8
9 namespace sync_driver { 9 namespace sync_sessions {
10 10
11 SyncedSession::SyncedSession() 11 SyncedSession::SyncedSession()
12 : session_tag("invalid"), device_type(TYPE_UNSET) {} 12 : session_tag("invalid"), device_type(TYPE_UNSET) {}
13 13
14 SyncedSession::~SyncedSession() { 14 SyncedSession::~SyncedSession() {
15 base::STLDeleteContainerPairSecondPointers(windows.begin(), windows.end()); 15 base::STLDeleteContainerPairSecondPointers(windows.begin(), windows.end());
16 } 16 }
17 17
18 sync_pb::SessionHeader SyncedSession::ToSessionHeader() const { 18 sync_pb::SessionHeader SyncedSession::ToSessionHeader() const {
19 sync_pb::SessionHeader header; 19 sync_pb::SessionHeader header;
(...skipping 24 matching lines...) Expand all
44 break; 44 break;
45 case SyncedSession::TYPE_OTHER: 45 case SyncedSession::TYPE_OTHER:
46 // Intentionally fall-through 46 // Intentionally fall-through
47 default: 47 default:
48 header.set_device_type(sync_pb::SyncEnums_DeviceType_TYPE_OTHER); 48 header.set_device_type(sync_pb::SyncEnums_DeviceType_TYPE_OTHER);
49 break; 49 break;
50 } 50 }
51 return header; 51 return header;
52 } 52 }
53 53
54 } // namespace sync_driver 54 } // namespace sync_sessions
OLDNEW
« no previous file with comments | « components/sync_sessions/synced_session.h ('k') | components/sync_sessions/synced_session_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698