| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/model/model_type_debug_info.h" | 5 #include "components/sync/model/model_type_debug_info.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 // UNIQUE_SERVER_TAG to check if the node is root node. isChildOf in | 92 // UNIQUE_SERVER_TAG to check if the node is root node. isChildOf in |
| 93 // sync_node_browser.js uses modelType to check if root node is parent of real | 93 // sync_node_browser.js uses modelType to check if root node is parent of real |
| 94 // data node. NON_UNIQUE_NAME will be the name of node to display. | 94 // data node. NON_UNIQUE_NAME will be the name of node to display. |
| 95 rootnode->SetString("PARENT_ID", "r"); | 95 rootnode->SetString("PARENT_ID", "r"); |
| 96 rootnode->SetString("UNIQUE_SERVER_TAG", type_string); | 96 rootnode->SetString("UNIQUE_SERVER_TAG", type_string); |
| 97 rootnode->SetBoolean("IS_DIR", true); | 97 rootnode->SetBoolean("IS_DIR", true); |
| 98 rootnode->SetString("modelType", type_string); | 98 rootnode->SetString("modelType", type_string); |
| 99 rootnode->SetString("NON_UNIQUE_NAME", type_string); | 99 rootnode->SetString("NON_UNIQUE_NAME", type_string); |
| 100 all_nodes->Append(std::move(rootnode)); | 100 all_nodes->Append(std::move(rootnode)); |
| 101 | 101 |
| 102 callback.Run(processor->type_, std::move(all_nodes)); | 102 callback.Run(processor->type_, nullptr); |
| 103 } | 103 } |
| 104 | 104 |
| 105 } // namespace syncer | 105 } // namespace syncer |
| OLD | NEW |