Index: chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc |
diff --git a/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc b/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc |
index fc5299dc0795c529c909b771333d73bc46bd96fb..de29ab150c8bc4f83cd5e932f3dc36d66dacbc5a 100644 |
--- a/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc |
+++ b/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc |
@@ -30,6 +30,7 @@ |
#include "chrome/browser/chromeos/status/network_menu_icon.h" |
#include "chrome/browser/chromeos/user_cros_settings_provider.h" |
#include "chrome/browser/prefs/pref_service.h" |
+#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/ui/browser.h" |
#include "chrome/browser/ui/browser_list.h" |
#include "chrome/browser/ui/browser_window.h" |
@@ -418,7 +419,7 @@ void InternetOptionsHandler::BuyDataPlanCallback(const ListValue* args) { |
if (!web_ui_) |
return; |
Browser* browser = BrowserList::FindBrowserWithFeature( |
- web_ui_->GetProfile(), Browser::FEATURE_TABSTRIP); |
+ Profile::FromWebUI(web_ui_), Browser::FEATURE_TABSTRIP); |
if (browser) |
browser->OpenMobilePlanTabAndActivate(); |
} |
@@ -886,7 +887,8 @@ void InternetOptionsHandler::CreateModalPopup(views::WidgetDelegate* view) { |
gfx::NativeWindow InternetOptionsHandler::GetNativeWindow() const { |
// TODO(beng): This is an improper direct dependency on Browser. Route this |
// through some sort of delegate. |
- Browser* browser = BrowserList::FindBrowserWithProfile(web_ui_->GetProfile()); |
+ Browser* browser = |
+ BrowserList::FindBrowserWithProfile(Profile::FromWebUI(web_ui_)); |
return browser->window()->GetNativeHandle(); |
} |