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

Unified Diff: chrome/browser/ui/views/frame/browser_view.cc

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/views/frame/browser_view.cc
===================================================================
--- chrome/browser/ui/views/frame/browser_view.cc (revision 95527)
+++ chrome/browser/ui/views/frame/browser_view.cc (working copy)
@@ -2094,8 +2094,7 @@
if (browser_->SupportsWindowFeature(Browser::FEATURE_BOOKMARKBAR) &&
contents) {
if (!bookmark_bar_view_.get()) {
- bookmark_bar_view_.reset(new BookmarkBarView(contents->profile(),
- browser_.get()));
+ bookmark_bar_view_.reset(new BookmarkBarView(browser_.get()));
bookmark_bar_view_->set_parent_owned(false);
bookmark_bar_view_->set_background(
new BookmarkExtensionBackground(this, bookmark_bar_view_.get(),
@@ -2103,8 +2102,6 @@
bookmark_bar_view_->SetBookmarkBarState(
browser_->bookmark_bar_state(),
BookmarkBar::DONT_ANIMATE_STATE_CHANGE);
- } else {
- bookmark_bar_view_->SetProfile(contents->profile());
}
bookmark_bar_view_->SetPageNavigator(contents->tab_contents());
new_bookmark_bar_view = bookmark_bar_view_.get();
@@ -2644,7 +2641,7 @@
toolbar_ = toolbar;
if (toolbar) {
AddChildView(toolbar_);
- toolbar_->Init(browser_->profile());
+ toolbar_->Init();
}
}

Powered by Google App Engine
This is Rietveld 408576698