Index: chrome/browser/ui/webui/options/chromeos/change_picture_options_handler.cc |
diff --git a/chrome/browser/ui/webui/options/chromeos/change_picture_options_handler.cc b/chrome/browser/ui/webui/options/chromeos/change_picture_options_handler.cc |
index 0cc1a2b65d860a85a69fbac7f0e699cae6254514..686911f6711c59117834a5455d162010adc0438c 100644 |
--- a/chrome/browser/ui/webui/options/chromeos/change_picture_options_handler.cc |
+++ b/chrome/browser/ui/webui/options/chromeos/change_picture_options_handler.cc |
@@ -10,6 +10,7 @@ |
#include "chrome/browser/chromeos/login/default_user_images.h" |
#include "chrome/browser/chromeos/login/user_manager.h" |
#include "chrome/browser/chromeos/options/take_photo_dialog.h" |
+#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/ui/browser_list.h" |
#include "chrome/browser/ui/browser_window.h" |
#include "chrome/browser/ui/views/window.h" |
@@ -171,7 +172,8 @@ void ChangePictureOptionsHandler::OnPhotoAccepted(const SkBitmap& photo) { |
} |
gfx::NativeWindow ChangePictureOptionsHandler::GetBrowserWindow() const { |
- Browser* browser = BrowserList::FindBrowserWithProfile(web_ui_->GetProfile()); |
+ Browser* browser = |
+ BrowserList::FindBrowserWithProfile(Profile::FromWebUI(web_ui_)); |
if (!browser) |
return NULL; |
return browser->window()->GetNativeHandle(); |