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

Unified Diff: chrome/browser/ui/webui/options2/advanced_options_utils2_win.cc

Issue 9003014: Replace WebUI::tab_contents() with web_contents() and switch all users to use web_contents.h inst... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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
Index: chrome/browser/ui/webui/options2/advanced_options_utils2_win.cc
===================================================================
--- chrome/browser/ui/webui/options2/advanced_options_utils2_win.cc (revision 116011)
+++ chrome/browser/ui/webui/options2/advanced_options_utils2_win.cc (working copy)
@@ -14,11 +14,12 @@
#include "base/path_service.h"
#include "base/threading/thread.h"
#include "chrome/browser/browser_process.h"
-#include "content/browser/tab_contents/tab_contents.h"
#include "content/browser/tab_contents/tab_contents_view.h"
#include "content/public/browser/browser_thread.h"
+#include "content/public/browser/web_contents.h"
using content::BrowserThread;
+using content::WebContents;
namespace options2 {
@@ -49,7 +50,7 @@
}
void AdvancedOptionsUtilities::ShowNetworkProxySettings(
- TabContents* tab_contents) {
+ WebContents* web_contents) {
DCHECK(BrowserThread::IsMessageLoopValid(BrowserThread::FILE));
BrowserThread::PostTask(BrowserThread::FILE,
FROM_HERE,
@@ -57,14 +58,14 @@
}
void AdvancedOptionsUtilities::ShowManageSSLCertificates(
- TabContents* tab_contents) {
+ 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
- tab_contents->GetView()->GetTopLevelNativeWindow();
+ web_contents->GetView()->GetTopLevelNativeWindow();
#endif
::CryptUIDlgCertMgr(&cert_mgr);
}

Powered by Google App Engine
This is Rietveld 408576698