| 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..60ac50a235c5ca1f04fc322a1a9ed539f4e83ac6 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,10 +10,12 @@
|
| #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"
|
| #include "chrome/common/chrome_paths.h"
|
| +#include "content/browser/tab_contents/tab_contents.h"
|
| #include "grit/generated_resources.h"
|
| #include "grit/theme_resources.h"
|
| #include "third_party/skia/include/core/SkBitmap.h"
|
| @@ -171,7 +173,9 @@ void ChangePictureOptionsHandler::OnPhotoAccepted(const SkBitmap& photo) {
|
| }
|
|
|
| gfx::NativeWindow ChangePictureOptionsHandler::GetBrowserWindow() const {
|
| - Browser* browser = BrowserList::FindBrowserWithProfile(web_ui_->GetProfile());
|
| + Profile* profile =
|
| + Profile::FromBrowserContext(web_ui_->tab_contents()->browser_context());
|
| + Browser* browser = BrowserList::FindBrowserWithProfile(profile);
|
| if (!browser)
|
| return NULL;
|
| return browser->window()->GetNativeHandle();
|
|
|