Index: chrome/browser/ui/webui/options/password_manager_handler.cc |
diff --git a/chrome/browser/ui/webui/options/password_manager_handler.cc b/chrome/browser/ui/webui/options/password_manager_handler.cc |
index 9b4382585906991e7cc8339640a426eeb62a738b..3805f1d022b5349689b44df552f9e1a79573f0b3 100644 |
--- a/chrome/browser/ui/webui/options/password_manager_handler.cc |
+++ b/chrome/browser/ui/webui/options/password_manager_handler.cc |
@@ -17,6 +17,8 @@ |
#include "content/public/browser/notification_details.h" |
#include "content/public/browser/notification_source.h" |
#include "content/public/browser/user_metrics.h" |
+#include "content/public/browser/web_contents.h" |
+#include "content/public/browser/web_contents_view.h" |
#include "content/public/browser/web_ui.h" |
#include "grit/chromium_strings.h" |
#include "grit/generated_resources.h" |
@@ -34,6 +36,12 @@ Profile* PasswordManagerHandler::GetProfile() { |
return Profile::FromWebUI(web_ui()); |
} |
+#if !defined(OS_ANDROID) |
+gfx::NativeWindow PasswordManagerHandler::GetNativeWindow() { |
+ return web_ui()->GetWebContents()->GetView()->GetTopLevelNativeWindow(); |
+} |
+#endif |
+ |
void PasswordManagerHandler::GetLocalizedValues( |
DictionaryValue* localized_strings) { |
DCHECK(localized_strings); |