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

Unified Diff: chrome/browser/tab_contents/background_contents.cc

Issue 233093006: Stop disabling force_compositing_mode for background RenderViews. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: background: codemoved Created 6 years, 8 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/tab_contents/background_contents.cc
diff --git a/chrome/browser/tab_contents/background_contents.cc b/chrome/browser/tab_contents/background_contents.cc
index 9420402e6614422bbd1554fc05fd12a153e800c5..20902f3772e101b8eea9d12387901652c41653da 100644
--- a/chrome/browser/tab_contents/background_contents.cc
+++ b/chrome/browser/tab_contents/background_contents.cc
@@ -123,6 +123,12 @@ void BackgroundContents::AddNewContents(WebContents* source,
new_contents, disposition, initial_pos, user_gesture, was_blocked);
}
+bool BackgroundContents::IsNeverVisible(content::WebContents* web_contents) {
+ DCHECK_EQ(extensions::VIEW_TYPE_BACKGROUND_CONTENTS,
+ extensions::GetViewType(web_contents));
+ return true;
+}
+
void BackgroundContents::RenderProcessGone(base::TerminationStatus status) {
content::NotificationService::current()->Notify(
chrome::NOTIFICATION_BACKGROUND_CONTENTS_TERMINATED,
« no previous file with comments | « chrome/browser/tab_contents/background_contents.h ('k') | content/browser/renderer_host/render_view_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698