| Index: trunk/src/chrome/browser/ui/ash/screenshot_taker.cc
|
| ===================================================================
|
| --- trunk/src/chrome/browser/ui/ash/screenshot_taker.cc (revision 239920)
|
| +++ trunk/src/chrome/browser/ui/ash/screenshot_taker.cc (working copy)
|
| @@ -71,7 +71,10 @@
|
| DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
|
|
|
| std::string encoded;
|
| - base::Base64Encode(png_data->data(), &encoded);
|
| + if (!base::Base64Encode(png_data->data(), &encoded)) {
|
| + LOG(ERROR) << "Failed to encode base64";
|
| + return;
|
| + }
|
|
|
| // 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
|
|
|