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

Unified Diff: chrome/browser/web_contents.cc

Issue 1912: Renames BoomarkBarModel to BookmarkModel. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/web_contents.cc
===================================================================
--- chrome/browser/web_contents.cc (revision 1988)
+++ chrome/browser/web_contents.cc (working copy)
@@ -7,7 +7,7 @@
#include "base/command_line.h"
#include "base/file_version_info.h"
#include "chrome/app/locales/locale_settings.h"
-#include "chrome/browser/bookmarks/bookmark_bar_model.h"
+#include "chrome/browser/bookmarks/bookmark_model.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/cache_manager_host.h"
#include "chrome/browser/character_encoding.h"
@@ -746,8 +746,8 @@
const NotificationDetails& details) {
TabContents::Observe(type, source, details);
switch (type) {
- case NOTIFY_BOOKMARK_MODEL_LOADED: // BookmarkBarModel finished loading,
- // fall through to update starred state.
+ case NOTIFY_BOOKMARK_MODEL_LOADED: // BookmarkModel finished loading, fall
+ // through to update starred state.
case NOTIFY_URLS_STARRED: { // Somewhere, a URL has been starred.
// Ignore notifications for profiles other than our current one.
Profile* source_profile = Source<Profile>(source).ptr();
@@ -1460,7 +1460,7 @@
}
void WebContents::UpdateStarredStateForCurrentURL() {
- BookmarkBarModel* model = profile()->GetBookmarkBarModel();
+ BookmarkModel* model = profile()->GetBookmarkModel();
const bool old_state = is_starred_;
is_starred_ = (model && model->GetNodeByURL(GetURL()));

Powered by Google App Engine
This is Rietveld 408576698