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

Side by Side Diff: chrome/browser/sync/glue/theme_model_associator.cc

Issue 2867036: sync: Remove unused function ChromeModelHasUserCreatedNodes. (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: explicit Created 10 years, 5 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) 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
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
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/theme_model_associator.h ('k') | chrome/browser/sync/glue/typed_url_model_associator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698