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

Unified Diff: chrome/browser/printing/background_printing_manager.cc

Issue 1153813003: Add user_gesture param to WebContentsDelegate::ActivateContents Base URL: https://chromium.googlesource.com/chromium/src.git@ug1_WebContentsImpl_Activate
Patch Set: Update callers Created 5 years, 7 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/printing/background_printing_manager.cc
diff --git a/chrome/browser/printing/background_printing_manager.cc b/chrome/browser/printing/background_printing_manager.cc
index daa8402d85310478520a4a452168ec8631b8a407..d109902fff21a1400872536d7579c9aa0b569da0 100644
--- a/chrome/browser/printing/background_printing_manager.cc
+++ b/chrome/browser/printing/background_printing_manager.cc
@@ -83,7 +83,8 @@ void BackgroundPrintingManager::OwnPrintPreviewDialog(
WebContents* initiator = dialog_controller->GetInitiator(preview_dialog);
if (!initiator)
return;
- initiator->GetDelegate()->ActivateContents(initiator);
+ initiator->GetDelegate()->ActivateContents(initiator,
+ true /* user_gesture */);
}
void BackgroundPrintingManager::Observe(
« no previous file with comments | « chrome/browser/media/media_stream_capture_indicator.cc ('k') | chrome/browser/printing/print_preview_dialog_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698