diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-11 19:20:18 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-11 19:20:18 +0000 |
commit | b29cfed9313a168710eba15bdaf0c0f094bee80f (patch) | |
tree | e5b8acbbe5c35c4e2d51a1339913751250482210 /chrome/browser/bookmarks | |
parent | 94cd29c33b73bdd3467433a3efcd182b82762980 (diff) | |
download | chromium_src-b29cfed9313a168710eba15bdaf0c0f094bee80f.zip chromium_src-b29cfed9313a168710eba15bdaf0c0f094bee80f.tar.gz chromium_src-b29cfed9313a168710eba15bdaf0c0f094bee80f.tar.bz2 |
bookmarks: Get rid of SetFileChanged() as it's called only once.
R=sky@chromium.org
Review URL: http://codereview.chromium.org/8536019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109671 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/bookmarks')
-rw-r--r-- | chrome/browser/bookmarks/bookmark_model.cc | 6 | ||||
-rw-r--r-- | chrome/browser/bookmarks/bookmark_model.h | 3 |
2 files changed, 1 insertions, 8 deletions
diff --git a/chrome/browser/bookmarks/bookmark_model.cc b/chrome/browser/bookmarks/bookmark_model.cc index e703185..2cf482e 100644 --- a/chrome/browser/bookmarks/bookmark_model.cc +++ b/chrome/browser/bookmarks/bookmark_model.cc @@ -579,7 +579,7 @@ void BookmarkModel::DoneLoading( next_node_id_ = details->max_id(); if (details->computed_checksum() != details->stored_checksum()) - SetFileChanged(); + file_changed_ = true; if (details->computed_checksum() != details->stored_checksum() || details->ids_reassigned()) { // If bookmarks file changed externally, the IDs may have changed @@ -829,10 +829,6 @@ int64 BookmarkModel::generate_next_node_id() { return next_node_id_++; } -void BookmarkModel::SetFileChanged() { - file_changed_ = true; -} - BookmarkLoadDetails* BookmarkModel::CreateLoadDetails() { BookmarkNode* bb_node = CreatePermanentNode(BookmarkNode::BOOKMARK_BAR); BookmarkNode* other_node = CreatePermanentNode(BookmarkNode::OTHER_NODE); diff --git a/chrome/browser/bookmarks/bookmark_model.h b/chrome/browser/bookmarks/bookmark_model.h index e83f72c..eb84286 100644 --- a/chrome/browser/bookmarks/bookmark_model.h +++ b/chrome/browser/bookmarks/bookmark_model.h @@ -430,9 +430,6 @@ class BookmarkModel : public content::NotificationObserver, // decoding since during decoding codec assigns node IDs. void set_next_node_id(int64 id) { next_node_id_ = id; } - // Records that the bookmarks file was changed externally. - void SetFileChanged(); - // Creates and returns a new BookmarkLoadDetails. It's up to the caller to // delete the returned object. BookmarkLoadDetails* CreateLoadDetails(); |