diff options
Diffstat (limited to 'chrome/browser/ui/ash/screenshot_taker.cc')
-rw-r--r-- | chrome/browser/ui/ash/screenshot_taker.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/chrome/browser/ui/ash/screenshot_taker.cc b/chrome/browser/ui/ash/screenshot_taker.cc index fa63be5..e5f9408 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 |