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

Unified Diff: chrome/browser/ui/webui/print_preview/print_preview_distiller.cc

Issue 1743143002: Remove WebContents::Was{Hidden,Shown}() from the content public interface Base URL: https://chromium.googlesource.com/chromium/src.git@20160225-WebContents-DicardCursorRects
Patch Set: Fix androido Created 4 years, 10 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/print_preview/print_preview_distiller.cc
diff --git a/chrome/browser/ui/webui/print_preview/print_preview_distiller.cc b/chrome/browser/ui/webui/print_preview/print_preview_distiller.cc
index f3076d92fcdc5cc124ac5afff6cd3a56280d1502..6fe5d8bd5cfe1257093b59dc587042b4080bea31 100644
--- a/chrome/browser/ui/webui/print_preview/print_preview_distiller.cc
+++ b/chrome/browser/ui/webui/print_preview/print_preview_distiller.cc
@@ -168,6 +168,7 @@ class PrintPreviewDistiller::WebContentsDelegateImpl
on_failed_callback_.Run();
}
+ // Note: This is copy-pasted from PrerenderContents::Observe().
void Observe(int type,
const content::NotificationSource& source,
const content::NotificationDetails& details) override {
@@ -190,7 +191,7 @@ class PrintPreviewDistiller::WebContentsDelegateImpl
// visibility API.
content::Details<RenderViewHost> new_render_view_host(details);
new_render_view_host->GetWidget()->WasResized();
- web_contents()->WasHidden();
+ web_contents()->MarkBackgrounded();
}
break;
}

Powered by Google App Engine
This is Rietveld 408576698