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

Unified Diff: chrome/browser/ui/cocoa/table_row_nsimage_cache_unittest.mm

Issue 363933002: setConfig is deprecated, use setInfo or allocPixels instead. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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/ui/cocoa/table_row_nsimage_cache_unittest.mm
diff --git a/chrome/browser/ui/cocoa/table_row_nsimage_cache_unittest.mm b/chrome/browser/ui/cocoa/table_row_nsimage_cache_unittest.mm
index f27e9351efa88fdea91f06fe5406bc7e3883b051..7138af8119e95e5e1d3e121802327b426e699ed0 100644
--- a/chrome/browser/ui/cocoa/table_row_nsimage_cache_unittest.mm
+++ b/chrome/browser/ui/cocoa/table_row_nsimage_cache_unittest.mm
@@ -31,8 +31,7 @@ class TestTable : public TableRowNSImageCache::Table {
SkBitmap MakeImage(int width, int height) {
SkBitmap image;
- image.setConfig(SkBitmap::kARGB_8888_Config, width, height);
- EXPECT_TRUE(image.allocPixels());
+ EXPECT_TRUE(image.allocN32Pixels(width, height));
image.eraseARGB(255, 255, 0, 0);
return image;
}
« no previous file with comments | « chrome/browser/ui/cocoa/history_menu_bridge_unittest.mm ('k') | components/search_provider_logos/logo_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698