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

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

Issue 86913002: Make base::Base64Encode() return void (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: One more chromeos-specific fix. 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: chrome/browser/ui/webui/print_preview/print_preview_handler.cc
diff --git a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
index 4a72e478dd84e30105c951a1bcbaf934609f882b..ef640a8dba06b5fb1c7741cc3430b7fae8a78d54 100644
--- a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
+++ b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
@@ -1172,9 +1172,7 @@ void PrintPreviewHandler::SendCloudPrintJob(const base::RefCountedBytes* data) {
std::string raw_data(reinterpret_cast<const char*>(data->front()),
data->size());
std::string base64_data;
- if (!base::Base64Encode(raw_data, &base64_data)) {
- NOTREACHED() << "Base64 encoding PDF data.";
- }
+ base::Base64Encode(raw_data, &base64_data);
StringValue data_value(base64_data);
web_ui()->CallJavascriptFunction("printToCloud", data_value);
« no previous file with comments | « chrome/browser/ui/certificate_dialogs.cc ('k') | chrome/common/metrics/caching_permuted_entropy_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698