| Index: chrome/browser/android/tab_android.cc
|
| diff --git a/chrome/browser/android/tab_android.cc b/chrome/browser/android/tab_android.cc
|
| index e0ecd6f0265b9a8a5f9d917a213b8f75fde1d94b..7792ae554cc7791ceea85d6bc7319cfd61a49e17 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;
|
| }
|
|
|
|
|