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

Unified Diff: chrome/browser/ui/bookmarks/bookmark_tab_helper.cc

Issue 7013001: Rename BookmarksTabHelper to BookmarkTabHelper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
Index: chrome/browser/ui/bookmarks/bookmark_tab_helper.cc
diff --git a/chrome/browser/ui/bookmarks/bookmarks_tab_helper.cc b/chrome/browser/ui/bookmarks/bookmark_tab_helper.cc
similarity index 78%
rename from chrome/browser/ui/bookmarks/bookmarks_tab_helper.cc
rename to chrome/browser/ui/bookmarks/bookmark_tab_helper.cc
index 8053f225a86c72faba2626e290ec94a6f7467890..7e3b5e4f4ecdf585cd7960aaa3ab0ec62f12df1a 100644
--- a/chrome/browser/ui/bookmarks/bookmarks_tab_helper.cc
+++ b/chrome/browser/ui/bookmarks/bookmark_tab_helper.cc
@@ -2,15 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/ui/bookmarks/bookmarks_tab_helper.h"
+#include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/ui/bookmarks/bookmarks_tab_helper_delegate.h"
+#include "chrome/browser/ui/bookmarks/bookmark_tab_helper_delegate.h"
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
#include "content/common/notification_service.h"
-BookmarksTabHelper::BookmarksTabHelper(TabContentsWrapper* tab_contents)
+BookmarkTabHelper::BookmarkTabHelper(TabContentsWrapper* tab_contents)
: TabContentsObserver(tab_contents->tab_contents()),
is_starred_(false),
tab_contents_wrapper_(tab_contents),
@@ -22,20 +22,20 @@ BookmarksTabHelper::BookmarksTabHelper(TabContentsWrapper* tab_contents)
NotificationService::AllSources());
}
-BookmarksTabHelper::~BookmarksTabHelper() {
+BookmarkTabHelper::~BookmarkTabHelper() {
// We don't want any notifications while we're running our destructor.
registrar_.RemoveAll();
}
-void BookmarksTabHelper::DidNavigateMainFramePostCommit(
+void BookmarkTabHelper::DidNavigateMainFramePostCommit(
const NavigationController::LoadCommittedDetails& /*details*/,
const ViewHostMsg_FrameNavigate_Params& /*params*/) {
UpdateStarredStateForCurrentURL();
}
-void BookmarksTabHelper::Observe(NotificationType type,
- const NotificationSource& source,
- const NotificationDetails& details) {
+void BookmarkTabHelper::Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details) {
switch (type.value) {
case NotificationType::BOOKMARK_MODEL_LOADED:
// BookmarkModel finished loading, fall through to update starred state.
@@ -56,7 +56,7 @@ void BookmarksTabHelper::Observe(NotificationType type,
}
}
-void BookmarksTabHelper::UpdateStarredStateForCurrentURL() {
+void BookmarkTabHelper::UpdateStarredStateForCurrentURL() {
BookmarkModel* model = tab_contents()->profile()->GetBookmarkModel();
const bool old_state = is_starred_;
is_starred_ = (model && model->IsBookmarked(tab_contents()->GetURL()));
« no previous file with comments | « chrome/browser/ui/bookmarks/bookmark_tab_helper.h ('k') | chrome/browser/ui/bookmarks/bookmark_tab_helper_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698