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

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

Issue 101113004: Revert 239759 "The comment in base64.h implies that base::Base64..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years 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: trunk/src/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
===================================================================
--- trunk/src/chrome/browser/ui/webui/print_preview/print_preview_handler.cc (revision 239920)
+++ trunk/src/chrome/browser/ui/webui/print_preview/print_preview_handler.cc (working copy)
@@ -1172,7 +1172,9 @@
std::string raw_data(reinterpret_cast<const char*>(data->front()),
data->size());
std::string base64_data;
- base::Base64Encode(raw_data, &base64_data);
+ if (!base::Base64Encode(raw_data, &base64_data)) {
+ NOTREACHED() << "Base64 encoding PDF data.";
+ }
StringValue data_value(base64_data);
web_ui()->CallJavascriptFunction("printToCloud", data_value);

Powered by Google App Engine
This is Rietveld 408576698