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

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

Issue 10873097: Merge 153342 - Print preview: Use an ID instead of memory pointer string in WebUI. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1229/src/
Patch Set: Created 8 years, 4 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_handler.cc
===================================================================
--- chrome/browser/ui/webui/print_preview/print_preview_handler.cc (revision 153583)
+++ chrome/browser/ui/webui/print_preview/print_preview_handler.cc (working copy)
@@ -343,8 +343,8 @@
// Add an additional key in order to identify |print_preview_ui| later on
// when calling PrintPreviewUI::GetCurrentPrintPreviewStatus() on the IO
// thread.
- settings->SetString(printing::kPreviewUIAddr,
- print_preview_ui->GetPrintPreviewUIAddress());
+ settings->SetInteger(printing::kPreviewUIID,
+ print_preview_ui->GetIDForPrintPreviewUI());
// Increment request count.
++regenerate_preview_request_count_;

Powered by Google App Engine
This is Rietveld 408576698