diff options
| author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-08 21:46:03 +0000 |
|---|---|---|
| committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-08 21:46:03 +0000 |
| commit | 876b799d1a13019e2cef872a15b980c3b2e0964a (patch) | |
| tree | 8aef2a35b07de0168ac5fd6718ac484b710c1448 | |
| parent | ad84a3a2979e1a4a8020f915aef9ec7747b80bf9 (diff) | |
| download | chromium_src-876b799d1a13019e2cef872a15b980c3b2e0964a.zip chromium_src-876b799d1a13019e2cef872a15b980c3b2e0964a.tar.gz chromium_src-876b799d1a13019e2cef872a15b980c3b2e0964a.tar.bz2 | |
TabContentsWrapper -> TabContents, part 24.
Printing.
BUG=131026
TEST=no change
Review URL: https://chromiumcodereview.appspot.com/10538059
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141293 0039d316-1c4b-4281-b951-d872f2087c98
| -rw-r--r-- | chrome/browser/printing/print_preview_message_handler.cc | 2 | ||||
| -rw-r--r-- | chrome/browser/printing/print_preview_tab_controller.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/printing/print_preview_message_handler.cc b/chrome/browser/printing/print_preview_message_handler.cc index deb1bed..4ea742a 100644 --- a/chrome/browser/printing/print_preview_message_handler.cc +++ b/chrome/browser/printing/print_preview_message_handler.cc @@ -84,7 +84,7 @@ TabContents* PrintPreviewMessageHandler::GetPrintPreviewTab() { } TabContents* PrintPreviewMessageHandler::tab_contents() { - return TabContents::GetCurrentWrapperForContents(web_contents()); + return TabContents::FromWebContents(web_contents()); } PrintPreviewUI* PrintPreviewMessageHandler::GetPrintPreviewUI() { diff --git a/chrome/browser/printing/print_preview_tab_controller.cc b/chrome/browser/printing/print_preview_tab_controller.cc index 1b13f99..675c224 100644 --- a/chrome/browser/printing/print_preview_tab_controller.cc +++ b/chrome/browser/printing/print_preview_tab_controller.cc @@ -277,7 +277,7 @@ void PrintPreviewTabController::Observe( case content::NOTIFICATION_NAV_ENTRY_COMMITTED: { NavigationController* controller = content::Source<NavigationController>(source).ptr(); - TabContents* tab = TabContents::GetCurrentWrapperForContents( + TabContents* tab = TabContents::FromWebContents( controller->GetWebContents()); content::LoadCommittedDetails* load_details = content::Details<content::LoadCommittedDetails>(details).ptr(); |
