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

Side by Side Diff: components/sync_bookmarks/bookmark_data_type_controller.cc

Issue 2335193006: [Sync] Fix namespaces for the sync_bookmarks component. (Closed)
Patch Set: This is what I get for de-linting. Created 4 years, 3 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) 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 "components/sync_bookmarks/bookmark_data_type_controller.h" 5 #include "components/sync_bookmarks/bookmark_data_type_controller.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "components/bookmarks/browser/bookmark_model.h" 8 #include "components/bookmarks/browser/bookmark_model.h"
9 #include "components/history/core/browser/history_service.h" 9 #include "components/history/core/browser/history_service.h"
10 #include "components/sync/driver/sync_api_component_factory.h" 10 #include "components/sync/driver/sync_api_component_factory.h"
11 #include "components/sync/driver/sync_client.h" 11 #include "components/sync/driver/sync_client.h"
12 12
13 using bookmarks::BookmarkModel; 13 using bookmarks::BookmarkModel;
14 14
15 namespace browser_sync { 15 namespace sync_bookmarks {
16 16
17 BookmarkDataTypeController::BookmarkDataTypeController( 17 BookmarkDataTypeController::BookmarkDataTypeController(
18 const base::Closure& dump_stack, 18 const base::Closure& dump_stack,
19 sync_driver::SyncClient* sync_client) 19 sync_driver::SyncClient* sync_client)
20 : FrontendDataTypeController(syncer::BOOKMARKS, dump_stack, sync_client), 20 : FrontendDataTypeController(syncer::BOOKMARKS, dump_stack, sync_client),
21 history_service_observer_(this), 21 history_service_observer_(this),
22 bookmark_model_observer_(this) {} 22 bookmark_model_observer_(this) {}
23 23
24 BookmarkDataTypeController::~BookmarkDataTypeController() {} 24 BookmarkDataTypeController::~BookmarkDataTypeController() {}
25 25
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 bookmark_model_observer_.RemoveAll(); 100 bookmark_model_observer_.RemoveAll();
101 OnModelLoaded(); 101 OnModelLoaded();
102 } 102 }
103 103
104 void BookmarkDataTypeController::HistoryServiceBeingDeleted( 104 void BookmarkDataTypeController::HistoryServiceBeingDeleted(
105 history::HistoryService* history_service) { 105 history::HistoryService* history_service) {
106 CleanUpState(); 106 CleanUpState();
107 } 107 }
108 108
109 } // namespace browser_sync 109 } // namespace sync_bookmarks
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698