OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/sync/glue/synced_session.h" | 5 #include "chrome/browser/sync/glue/synced_session.h" |
6 | 6 |
7 #include "base/stl_util.h" | 7 #include "base/stl_util.h" |
8 #include "chrome/browser/sessions/session_types.h" | 8 #include "chrome/browser/sessions/session_types.h" |
9 | 9 |
10 namespace browser_sync { | 10 namespace browser_sync { |
11 | 11 |
12 SyncedSession::SyncedSession() : session_tag("invalid"), | 12 SyncedSession::SyncedSession() : session_tag("invalid"), |
13 device_type(TYPE_UNSET) { | 13 device_type(TYPE_UNSET) { |
14 } | 14 } |
15 | 15 |
16 SyncedSession::~SyncedSession() { | 16 SyncedSession::~SyncedSession() { |
17 STLDeleteElements(&windows); | 17 STLDeleteContainerPairSecondPointers(windows.begin(), windows.end()); |
18 } | 18 } |
19 | 19 |
20 } // namespace browser_sync | 20 } // namespace browser_sync |
OLD | NEW |