| Index: chrome/browser/android/tab_android.cc
|
| diff --git a/chrome/browser/android/tab_android.cc b/chrome/browser/android/tab_android.cc
|
| index 0d5ff1934de1f8e15b7747dda8598d778e8271d6..272134031a50e5f5f4e9fc6aaad08e318256f6de 100644
|
| --- a/chrome/browser/android/tab_android.cc
|
| +++ b/chrome/browser/android/tab_android.cc
|
| @@ -33,6 +33,7 @@
|
| #include "chrome/browser/prerender/prerender_manager.h"
|
| #include "chrome/browser/prerender/prerender_manager_factory.h"
|
| #include "chrome/browser/printing/print_view_manager_basic.h"
|
| +#include "chrome/browser/printing/print_view_manager_common.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/profiles/profile_android.h"
|
| #include "chrome/browser/profiles/profile_manager.h"
|
| @@ -669,10 +670,10 @@ bool TabAndroid::Print(JNIEnv* env, const JavaParamRef<jobject>& obj) {
|
| printing::PrintViewManagerBasic::CreateForWebContents(web_contents());
|
| printing::PrintViewManagerBasic* print_view_manager =
|
| printing::PrintViewManagerBasic::FromWebContents(web_contents());
|
| - if (print_view_manager == NULL)
|
| + if (!print_view_manager)
|
| return false;
|
|
|
| - print_view_manager->PrintNow();
|
| + print_view_manager->PrintNow(printing::GetFrameToPrint(web_contents()));
|
| return true;
|
| }
|
|
|
|
|