Index: chrome/browser/extensions/extension_icon_manager.cc |
=================================================================== |
--- chrome/browser/extensions/extension_icon_manager.cc (revision 82144) |
+++ chrome/browser/extensions/extension_icon_manager.cc (working copy) |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -24,9 +24,10 @@ |
// around the original bitmap. |
static SkBitmap ApplyPadding(const SkBitmap& source, |
const gfx::Insets& padding) { |
- scoped_ptr<gfx::CanvasSkia> result( |
- new gfx::CanvasSkia(source.width() + padding.width(), |
- source.height() + padding.height(), false)); |
+ scoped_ptr<gfx::CanvasSkia> result(new gfx::CanvasSkia); |
+ result->Init(source.width() + padding.width(), |
+ source.height() + padding.height(), |
+ false); |
result->DrawBitmapInt( |
source, |
0, 0, source.width(), source.height(), |