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

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

Issue 9693064: ScopedPrinterInfoSetter on crash prone blocks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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/print_system_task_proxy.cc
diff --git a/chrome/browser/printing/print_system_task_proxy.cc b/chrome/browser/printing/print_system_task_proxy.cc
index 7386a6c5ef080c0025c4877b680fbf9e715c869f..38c6c26a83064a16c4c9933b335c3ec65614bcde 100644
--- a/chrome/browser/printing/print_system_task_proxy.cc
+++ b/chrome/browser/printing/print_system_task_proxy.cc
@@ -16,6 +16,7 @@
#include "base/values.h"
#include "chrome/browser/ui/webui/print_preview/print_preview_handler.h"
#include "chrome/browser/ui/webui/print_preview/sticky_settings.h"
+#include "chrome/common/child_process_logging.h"
#include "printing/backend/print_backend.h"
#include "printing/print_job_constants.h"
#include "printing/print_settings.h"
@@ -518,6 +519,8 @@ void PrintSystemTaskProxy::GetPrinterCapabilitiesWin(
void PrintSystemTaskProxy::GetPrinterCapabilities(
const std::string& printer_name) {
VLOG(1) << "Get printer capabilities start for " << printer_name;
+ child_process_logging::ScopedPrinterInfoSetter prn_info(
+ print_backend_->GetPrinterDriverInfo(printer_name));
printing::PrinterCapsAndDefaults printer_info;
if (!print_backend_->GetPrinterCapsAndDefaults(printer_name,
&printer_info)) {
« no previous file with comments | « no previous file | chrome/service/cloud_print/print_system_cups.cc » ('j') | chrome/service/cloud_print/print_system_cups.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698