From 9dbeadb1ed4f28a358a20de556dc5cb4ea51e343 Mon Sep 17 00:00:00 2001 From: "oshima@chromium.org" Date: Fri, 11 Dec 2009 01:31:01 +0000 Subject: fix chromeos build BUG=None TEST=None Review URL: http://codereview.chromium.org/492013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34319 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/chromeos/main_menu.cc | 5 ++--- chrome/browser/chromeos/main_menu.h | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'chrome') diff --git a/chrome/browser/chromeos/main_menu.cc b/chrome/browser/chromeos/main_menu.cc index f0daa45..0930bcbd 100644 --- a/chrome/browser/chromeos/main_menu.cc +++ b/chrome/browser/chromeos/main_menu.cc @@ -244,9 +244,8 @@ void MainMenu::RequestMove(const gfx::Rect& new_bounds) { rwhv_->SetSize(rwhv_size); } -RendererPreferences MainMenu::GetRendererPrefs() const { - return renderer_preferences_util::GetInitedRendererPreferences( - browser_->profile()); +RendererPreferences MainMenu::GetRendererPrefs(Profile* profile) const { + return renderer_preferences_util::GetInitedRendererPreferences(profile); } void MainMenu::CreateNewWindow(int route_id) { diff --git a/chrome/browser/chromeos/main_menu.h b/chrome/browser/chromeos/main_menu.h index 055c506..8dd4afc 100644 --- a/chrome/browser/chromeos/main_menu.h +++ b/chrome/browser/chromeos/main_menu.h @@ -145,7 +145,7 @@ class MainMenu : public RenderViewHostDelegate, return this; } virtual void RequestMove(const gfx::Rect& new_bounds); - virtual RendererPreferences GetRendererPrefs() const; + virtual RendererPreferences GetRendererPrefs(Profile* profile) const; // RenderViewHostDelegate::View overrides. virtual void CreateNewWindow(int route_id); -- cgit v1.1