OLD | NEW |
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 "chrome/browser/sync/glue/synced_device_tracker.h" | 5 #include "chrome/browser/sync/glue/synced_device_tracker.h" |
6 | 6 |
7 #include "base/stringprintf.h" | 7 #include "base/stringprintf.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "chrome/browser/sync/glue/device_info.h" | 9 #include "chrome/browser/sync/glue/device_info.h" |
10 #include "sync/internal_api/public/base/model_type.h" | 10 #include "sync/internal_api/public/base/model_type.h" |
11 #include "sync/internal_api/public/read_node.h" | 11 #include "sync/internal_api/public/read_node.h" |
12 #include "sync/internal_api/public/read_transaction.h" | 12 #include "sync/internal_api/public/read_transaction.h" |
13 #include "sync/internal_api/public/user_share.h" | 13 #include "sync/internal_api/public/user_share.h" |
14 #include "sync/internal_api/public/write_node.h" | 14 #include "sync/internal_api/public/write_node.h" |
15 #include "sync/internal_api/public/write_transaction.h" | 15 #include "sync/internal_api/public/write_transaction.h" |
16 | 16 |
17 namespace browser_sync { | 17 namespace browser_sync { |
18 | 18 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 new_node.InitUniqueByCreation(syncer::DEVICE_INFO, | 129 new_node.InitUniqueByCreation(syncer::DEVICE_INFO, |
130 type_root, | 130 type_root, |
131 local_device_info_tag_); | 131 local_device_info_tag_); |
132 DCHECK_EQ(syncer::WriteNode::INIT_SUCCESS, create_result); | 132 DCHECK_EQ(syncer::WriteNode::INIT_SUCCESS, create_result); |
133 new_node.SetDeviceInfoSpecifics(specifics); | 133 new_node.SetDeviceInfoSpecifics(specifics); |
134 new_node.SetTitle(UTF8ToWide(specifics.client_name())); | 134 new_node.SetTitle(UTF8ToWide(specifics.client_name())); |
135 } | 135 } |
136 } | 136 } |
137 | 137 |
138 } // namespace browser_sync | 138 } // namespace browser_sync |
OLD | NEW |