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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_view_win.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
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_view_win.h ('k') | chrome/browser/ui/views/toolbar_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/omnibox/omnibox_view_win.cc
===================================================================
--- chrome/browser/ui/views/omnibox/omnibox_view_win.cc (revision 95527)
+++ chrome/browser/ui/views/omnibox/omnibox_view_win.cc (working copy)
@@ -28,6 +28,7 @@
#include "chrome/browser/command_updater.h"
#include "chrome/browser/net/url_fixer_upper.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/views/location_bar/location_bar_view.h"
#include "chrome/common/chrome_notification_types.h"
#include "content/browser/tab_contents/tab_contents.h"
@@ -395,13 +396,13 @@
ToolbarModel* toolbar_model,
LocationBarView* parent_view,
HWND hwnd,
- Profile* profile,
CommandUpdater* command_updater,
bool popup_window_mode,
const views::View* location_bar)
- : model_(new AutocompleteEditModel(this, controller, profile)),
+ : model_(new AutocompleteEditModel(this, controller,
+ parent_view->browser()->profile())),
popup_view_(new AutocompletePopupContentsView(font, this, model_.get(),
- profile, location_bar)),
+ location_bar)),
controller_(controller),
parent_view_(parent_view),
toolbar_model_(toolbar_model),
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_view_win.h ('k') | chrome/browser/ui/views/toolbar_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698