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

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

Issue 114055: We need to save bookmarks file when the persist_ids settings changes... (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 17017)
+++ chrome/browser/bookmarks/bookmark_model.h (working copy)
@@ -328,6 +328,9 @@
bool PersistIDs() const { return persist_ids_; }
void SetPersistIDs(bool value);
+ // Returns whether the bookmarks file changed externally.
+ bool file_changed() const { return file_changed_; }
+
private:
// Used to order BookmarkNodes by URL.
class NodeURLComparator {
@@ -418,6 +421,9 @@
// persisted.
void set_next_node_id(int id) { next_node_id_ = id; }
+ // Records that the bookmarks file was changed externally.
+ void SetFileChanged();
+
// Creates and returns a new LoadDetails. It's up to the caller to delete
// the returned object.
BookmarkStorage::LoadDetails* CreateLoadDetails();
@@ -437,6 +443,9 @@
// Whether to persist bookmark IDs.
bool persist_ids_;
+ // Whether the bookmarks file was changed manulaly by the user.
+ bool file_changed_;
sky 2009/05/28 19:13:17 manulaly -> manually Can you also add this is set
Munjal (Google) 2009/05/28 19:17:52 Done. I used "externally" instead of "manually" as
+
// 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