OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/theme_model_associator.h" | 5 #include "chrome/browser/sync/glue/theme_model_associator.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "chrome/browser/browser_theme_provider.h" | 10 #include "chrome/browser/browser_theme_provider.h" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 if (!root.InitByTagLookup(kThemesTag)) { | 87 if (!root.InitByTagLookup(kThemesTag)) { |
88 LOG(ERROR) << kNoThemesFolderError; | 88 LOG(ERROR) << kNoThemesFolderError; |
89 return false; | 89 return false; |
90 } | 90 } |
91 // The sync model has user created nodes iff the themes folder has | 91 // The sync model has user created nodes iff the themes folder has |
92 // any children. | 92 // any children. |
93 *has_nodes = root.GetFirstChildId() != sync_api::kInvalidId; | 93 *has_nodes = root.GetFirstChildId() != sync_api::kInvalidId; |
94 return true; | 94 return true; |
95 } | 95 } |
96 | 96 |
97 bool ThemeModelAssociator::ChromeModelHasUserCreatedNodes(bool* has_nodes) { | |
98 DCHECK(has_nodes); | |
99 // Assume the themes model always has user-created nodes. | |
100 *has_nodes = true; | |
101 return true; | |
102 } | |
103 | |
104 } // namespace browser_sync | 97 } // namespace browser_sync |
OLD | NEW |