Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(447)

Unified Diff: chrome/browser/ui/webui/options/advanced_options_utils_win.cc

Issue 23889021: Parent SSL certs window properly in win aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: no ifdef required Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options/advanced_options_utils_win.cc
diff --git a/chrome/browser/ui/webui/options/advanced_options_utils_win.cc b/chrome/browser/ui/webui/options/advanced_options_utils_win.cc
index 39e47512f9593eab4b7faeebe6512b280e1a747d..ac1ca8255c726fb48154775e01ff16275a06752c 100644
--- a/chrome/browser/ui/webui/options/advanced_options_utils_win.cc
+++ b/chrome/browser/ui/webui/options/advanced_options_utils_win.cc
@@ -16,6 +16,7 @@
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_view.h"
+#include "ui/views/win/hwnd_util.h"
using content::BrowserThread;
using content::WebContents;
@@ -60,12 +61,8 @@ void AdvancedOptionsUtilities::ShowManageSSLCertificates(
WebContents* web_contents) {
CRYPTUI_CERT_MGR_STRUCT cert_mgr = { 0 };
cert_mgr.dwSize = sizeof(CRYPTUI_CERT_MGR_STRUCT);
- cert_mgr.hwndParent =
-#if defined(USE_AURA)
- NULL;
-#else
- web_contents->GetView()->GetTopLevelNativeWindow();
-#endif
+ cert_mgr.hwndParent = views::HWNDForNativeWindow(
+ web_contents->GetView()->GetTopLevelNativeWindow());
::CryptUIDlgCertMgr(&cert_mgr);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698