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

Unified Diff: chrome/renderer/render_widget_browsertest.cc

Issue 4192012: Convert implicit scoped_refptr constructor calls to explicit ones, part 1 (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: fix presubmit Created 10 years, 2 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
« no previous file with comments | « chrome/renderer/render_widget.cc ('k') | chrome/renderer/render_widget_fullscreen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_widget_browsertest.cc
diff --git a/chrome/renderer/render_widget_browsertest.cc b/chrome/renderer/render_widget_browsertest.cc
index ab7502c65f52ed155212428fa1a11bac540a8152..ae955ad51c4f7004ca248809323738efcbf296b4 100644
--- a/chrome/renderer/render_widget_browsertest.cc
+++ b/chrome/renderer/render_widget_browsertest.cc
@@ -128,7 +128,7 @@ bool RenderWidgetTest::ImageContainsColor(const SkBitmap& bitmap,
void RenderWidgetTest::OutputBitmapToFile(const SkBitmap& bitmap,
const FilePath& file_path) {
- scoped_refptr<RefCountedBytes> bitmap_data = new RefCountedBytes();
+ scoped_refptr<RefCountedBytes> bitmap_data(new RefCountedBytes());
SkAutoLockPixels lock(bitmap);
ASSERT_TRUE(gfx::JPEGCodec::Encode(
reinterpret_cast<unsigned char*>(bitmap.getAddr32(0, 0)),
« no previous file with comments | « chrome/renderer/render_widget.cc ('k') | chrome/renderer/render_widget_fullscreen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698