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

Unified Diff: chrome/browser/bookmarks/bookmark_model.h

Issue 113882: Add a preference to enable/disable ID persistence in bookmark model and... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/bookmarks/bookmark_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/bookmarks/bookmark_model.h
===================================================================
--- chrome/browser/bookmarks/bookmark_model.h (revision 16874)
+++ chrome/browser/bookmarks/bookmark_model.h (working copy)
@@ -324,6 +324,10 @@
// testing.
void ClearStore();
+ // Sets/returns whether or not bookmark IDs are persisted or not.
+ bool PersistIDs() const { return persist_ids_; }
+ void SetPersistIDs(bool value);
+
private:
// Used to order BookmarkNodes by URL.
class NodeURLComparator {
@@ -418,6 +422,11 @@
// the returned object.
BookmarkStorage::LoadDetails* CreateLoadDetails();
+ // Registers bookmarks related prefs.
+ void RegisterPreferences();
+ // Loads bookmark related preferences.
+ void LoadPreferences();
+
NotificationRegistrar registrar_;
Profile* profile_;
@@ -425,6 +434,9 @@
// Whether the initial set of data has been loaded.
bool loaded_;
+ // Whether to persist bookmark IDs.
+ bool persist_ids_;
+
// The root node. This contains the bookmark bar node and the 'other' node as
// children.
BookmarkNode root_;
« no previous file with comments | « no previous file | chrome/browser/bookmarks/bookmark_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698