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

Unified Diff: chrome/browser/ui/webui/certificate_viewer_webui.cc

Issue 10534098: TabContentsWrapper -> TabContents, part 51. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 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
Index: chrome/browser/ui/webui/certificate_viewer_webui.cc
diff --git a/chrome/browser/ui/webui/certificate_viewer_webui.cc b/chrome/browser/ui/webui/certificate_viewer_webui.cc
index ef85f2f0ea3a3f015fef8801542e62bd4b7bea2f..789cbc7c71c0f2984627e611ab01bbe1e88cab70 100644
--- a/chrome/browser/ui/webui/certificate_viewer_webui.cc
+++ b/chrome/browser/ui/webui/certificate_viewer_webui.cc
@@ -16,7 +16,7 @@
#include "chrome/browser/ui/browser_list.h"
#include "chrome/browser/ui/certificate_dialogs.h"
#include "chrome/browser/ui/constrained_window.h"
-#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
+#include "chrome/browser/ui/tab_contents/tab_contents.h"
#include "chrome/common/net/x509_certificate_model.h"
#include "chrome/common/url_constants.h"
#include "content/public/browser/web_contents.h"
@@ -72,15 +72,14 @@ void CertificateViewerDialog::Show(gfx::NativeWindow parent) {
// TODO(oshima): Should get browser from parent.
Browser* browser = BrowserList::GetLastActive();
DCHECK(browser);
- TabContentsWrapper* current_wrapper =
- browser->GetSelectedTabContentsWrapper();
+ TabContents* current_tab_contents = browser->GetActiveTabContents();
// TODO(bshe): UI tweaks needed for AURA html Dialog, such as add padding on
// title for AURA ConstrainedWebDialogUI.
window_ = ui::CreateConstrainedWebDialog(
- current_wrapper->profile(),
+ current_tab_contents->profile(),
this,
NULL,
- current_wrapper)->window()->GetNativeWindow();
+ current_tab_contents)->window()->GetNativeWindow();
}
ui::ModalType CertificateViewerDialog::GetDialogModalType() const {
« no previous file with comments | « chrome/browser/ui/webui/certificate_viewer_ui.cc ('k') | chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698