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

Unified Diff: chrome/browser/notifications/notification_conversion_helper.cc

Issue 545513002: tryAllocPixels returns bool, allocPixels requires success (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months 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/notifications/notification_conversion_helper.cc
diff --git a/chrome/browser/notifications/notification_conversion_helper.cc b/chrome/browser/notifications/notification_conversion_helper.cc
index 800adc11c620a685ea9f8a419625689ed5fe9a3e..dc2c1f5ae09c1fd10b865a56431401df465b5d68 100644
--- a/chrome/browser/notifications/notification_conversion_helper.cc
+++ b/chrome/browser/notifications/notification_conversion_helper.cc
@@ -168,7 +168,7 @@ bool NotificationConversionHelper::NotificationBitmapToGfxImage(
SkBitmap bitmap;
// Allocate the actual backing store with the sanitized dimensions.
- if (!bitmap.allocN32Pixels(width, height))
+ if (!bitmap.tryAllocN32Pixels(width, height))
return false;
// Ensure that our bitmap and our data now refer to the same number of pixels.

Powered by Google App Engine
This is Rietveld 408576698