Index: chrome/browser/ui/ash/screenshot_taker.cc |
diff --git a/chrome/browser/ui/ash/screenshot_taker.cc b/chrome/browser/ui/ash/screenshot_taker.cc |
index fa63be5aef724570f35a0bdea9e60a2983bb5ee7..e5f9408605772ebe5c3541d41afca082d6bcbc07 100644 |
--- a/chrome/browser/ui/ash/screenshot_taker.cc |
+++ b/chrome/browser/ui/ash/screenshot_taker.cc |
@@ -71,10 +71,7 @@ void CopyScreenshotToClipboard(scoped_refptr<base::RefCountedString> png_data) { |
DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); |
std::string encoded; |
- if (!base::Base64Encode(png_data->data(), &encoded)) { |
- LOG(ERROR) << "Failed to encode base64"; |
- return; |
- } |
+ base::Base64Encode(png_data->data(), &encoded); |
// Only cares about HTML because ChromeOS doesn't need other formats. |
// TODO(dcheng): Why don't we take advantage of the ability to write bitmaps |