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

Side by Side Diff: components/sync/driver/directory_data_type_controller.cc

Issue 2389063002: [Sync] Fixing easy lint violations. (Closed)
Patch Set: Updated for Max's comments. Created 4 years, 2 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) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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/driver/directory_data_type_controller.h" 5 #include "components/sync/driver/directory_data_type_controller.h"
6 6
7 #include <utility>
8
7 #include "components/sync/core/user_share.h" 9 #include "components/sync/core/user_share.h"
8 #include "components/sync/driver/backend_data_type_configurer.h" 10 #include "components/sync/driver/backend_data_type_configurer.h"
9 #include "components/sync/driver/sync_service.h" 11 #include "components/sync/driver/sync_service.h"
10 #include "components/sync/syncable/syncable_read_transaction.h" 12 #include "components/sync/syncable/syncable_read_transaction.h"
11 13
12 namespace syncer { 14 namespace syncer {
13 15
14 DirectoryDataTypeController::DirectoryDataTypeController( 16 DirectoryDataTypeController::DirectoryDataTypeController(
15 ModelType type, 17 ModelType type,
16 const base::Closure& dump_stack, 18 const base::Closure& dump_stack,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 std::unique_ptr<base::ListValue> 57 std::unique_ptr<base::ListValue>
56 DirectoryDataTypeController::GetAllNodesForTypeFromDirectory( 58 DirectoryDataTypeController::GetAllNodesForTypeFromDirectory(
57 ModelType type, 59 ModelType type,
58 syncable::Directory* directory) { 60 syncable::Directory* directory) {
59 DCHECK(directory); 61 DCHECK(directory);
60 syncable::ReadTransaction trans(FROM_HERE, directory); 62 syncable::ReadTransaction trans(FROM_HERE, directory);
61 return directory->GetNodeDetailsForType(&trans, type); 63 return directory->GetNodeDetailsForType(&trans, type);
62 } 64 }
63 65
64 } // namespace syncer 66 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/driver/directory_data_type_controller.h ('k') | components/sync/driver/glue/sync_backend_host_core.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698