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

Side by Side Diff: chrome/browser/profiles/bookmark_model_loaded_observer.cc

Issue 284893003: Move bookmarks/core/... to bookmarks/... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing errors reported by presubmit Created 6 years, 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/profiles/bookmark_model_loaded_observer.h" 5 #include "chrome/browser/profiles/bookmark_model_loaded_observer.h"
6 6
7 #include "chrome/browser/sync/profile_sync_service_factory.h" 7 #include "chrome/browser/sync/profile_sync_service_factory.h"
8 #include "components/bookmarks/core/browser/bookmark_model.h" 8 #include "components/bookmarks/browser/bookmark_model.h"
9 9
10 BookmarkModelLoadedObserver::BookmarkModelLoadedObserver(Profile* profile) 10 BookmarkModelLoadedObserver::BookmarkModelLoadedObserver(Profile* profile)
11 : profile_(profile) { 11 : profile_(profile) {
12 } 12 }
13 13
14 void BookmarkModelLoadedObserver::BookmarkModelChanged() { 14 void BookmarkModelLoadedObserver::BookmarkModelChanged() {
15 } 15 }
16 16
17 void BookmarkModelLoadedObserver::BookmarkModelLoaded(BookmarkModel* model, 17 void BookmarkModelLoadedObserver::BookmarkModelLoaded(BookmarkModel* model,
18 bool ids_reassigned) { 18 bool ids_reassigned) {
19 // Causes lazy-load if sync is enabled. 19 // Causes lazy-load if sync is enabled.
20 ProfileSyncServiceFactory::GetInstance()->GetForProfile(profile_); 20 ProfileSyncServiceFactory::GetInstance()->GetForProfile(profile_);
21 model->RemoveObserver(this); 21 model->RemoveObserver(this);
22 delete this; 22 delete this;
23 } 23 }
24 24
25 void BookmarkModelLoadedObserver::BookmarkModelBeingDeleted( 25 void BookmarkModelLoadedObserver::BookmarkModelBeingDeleted(
26 BookmarkModel* model) { 26 BookmarkModel* model) {
27 model->RemoveObserver(this); 27 model->RemoveObserver(this);
28 delete this; 28 delete this;
29 } 29 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/bookmark_model_loaded_observer.h ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698