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

Unified Diff: chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.h

Issue 7574021: Remove frontend code that allows for dynamic profile setting, and read the profile off the browse... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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/gtk/bookmarks/bookmark_bar_gtk.h
===================================================================
--- chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.h (revision 95527)
+++ chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.h (working copy)
@@ -37,7 +37,6 @@
class GtkThemeService;
class MenuGtk;
class PageNavigator;
-class Profile;
class TabstripOriginProvider;
class BookmarkBarGtk : public ui::AnimationDelegate,
@@ -52,18 +51,10 @@
static const int kBookmarkBarNTPHeight;
BookmarkBarGtk(BrowserWindowGtk* window,
- Profile* profile,
Browser* browser,
TabstripOriginProvider* tabstrip_origin_provider);
virtual ~BookmarkBarGtk();
- // Resets the profile. This removes any buttons for the current profile and
- // recreates the models.
- void SetProfile(Profile* profile);
-
- // Returns the current profile.
- Profile* GetProfile() { return profile_; }
-
// Returns the current browser.
Browser* browser() const { return browser_; }
@@ -75,7 +66,7 @@
void SetPageNavigator(PageNavigator* navigator);
// Create the contents of the bookmark bar.
- void Init(Profile* profile);
+ void Init();
// Changes the state of the bookmark bar.
void SetBookmarkBarState(BookmarkBar::State state,
@@ -302,8 +293,6 @@
// Updates the drag&drop state when |edit_bookmarks_enabled_| changes.
void OnEditBookmarksEnabledChanged();
- Profile* profile_;
-
// Used for opening urls.
PageNavigator* page_navigator_;

Powered by Google App Engine
This is Rietveld 408576698