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

Side by Side Diff: chrome/browser/bookmarks/bookmark_model.cc

Issue 3203008: Move prefs-related files under chrome/browser/ into a prefs/ subdir. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 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) 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/bookmarks/bookmark_model.h" 5 #include "chrome/browser/bookmarks/bookmark_model.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/l10n_util_collator.h" 8 #include "app/l10n_util_collator.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/scoped_vector.h" 10 #include "base/scoped_vector.h"
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "chrome/browser/bookmarks/bookmark_index.h" 12 #include "chrome/browser/bookmarks/bookmark_index.h"
13 #include "chrome/browser/bookmarks/bookmark_utils.h" 13 #include "chrome/browser/bookmarks/bookmark_utils.h"
14 #include "chrome/browser/bookmarks/bookmark_storage.h" 14 #include "chrome/browser/bookmarks/bookmark_storage.h"
15 #include "chrome/browser/browser_process.h" 15 #include "chrome/browser/browser_process.h"
16 #include "chrome/browser/history/history_notifications.h" 16 #include "chrome/browser/history/history_notifications.h"
17 #include "chrome/browser/pref_service.h" 17 #include "chrome/browser/prefs/pref_service.h"
18 #include "chrome/browser/profile.h" 18 #include "chrome/browser/profile.h"
19 #include "chrome/common/notification_service.h" 19 #include "chrome/common/notification_service.h"
20 #include "gfx/codec/png_codec.h" 20 #include "gfx/codec/png_codec.h"
21 #include "grit/generated_resources.h" 21 #include "grit/generated_resources.h"
22 22
23 using base::Time; 23 using base::Time;
24 24
25 namespace { 25 namespace {
26 26
27 // Helper to get a mutable bookmark node. 27 // Helper to get a mutable bookmark node.
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 void BookmarkModel::SetFileChanged() { 803 void BookmarkModel::SetFileChanged() {
804 file_changed_ = true; 804 file_changed_ = true;
805 } 805 }
806 806
807 BookmarkLoadDetails* BookmarkModel::CreateLoadDetails() { 807 BookmarkLoadDetails* BookmarkModel::CreateLoadDetails() {
808 BookmarkNode* bb_node = CreateBookmarkNode(); 808 BookmarkNode* bb_node = CreateBookmarkNode();
809 BookmarkNode* other_folder_node = CreateOtherBookmarksNode(); 809 BookmarkNode* other_folder_node = CreateOtherBookmarksNode();
810 return new BookmarkLoadDetails( 810 return new BookmarkLoadDetails(
811 bb_node, other_folder_node, new BookmarkIndex(profile()), next_node_id_); 811 bb_node, other_folder_node, new BookmarkIndex(profile()), next_node_id_);
812 } 812 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698