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

Unified Diff: chrome/tools/profiles/generate_profile.cc

Issue 243076: Move the JPEG and PNG codecs from base/gfx to app/gfx/codec. Move the classes... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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/tools/profiles/generate_profile.cc
===================================================================
--- chrome/tools/profiles/generate_profile.cc (revision 27832)
+++ chrome/tools/profiles/generate_profile.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2009 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.
@@ -7,9 +7,9 @@
#include "chrome/tools/profiles/thumbnail-inl.h"
+#include "app/gfx/codec/jpeg_codec.h"
#include "base/at_exit.h"
#include "base/file_path.h"
-#include "base/gfx/jpeg_codec.h"
#include "base/icu_util.h"
#include "base/message_loop.h"
#include "base/path_service.h"
@@ -159,11 +159,11 @@
history_service->SetPageContents(url, ConstructRandomPage());
if (RandomInt(0, 2) == 0) {
scoped_ptr<SkBitmap> bitmap(
- JPEGCodec::Decode(kGoogleThumbnail, sizeof(kGoogleThumbnail)));
+ gfx::JPEGCodec::Decode(kGoogleThumbnail, sizeof(kGoogleThumbnail)));
history_service->SetPageThumbnail(url, *bitmap, score);
} else {
scoped_ptr<SkBitmap> bitmap(
- JPEGCodec::Decode(kWeewarThumbnail, sizeof(kWeewarThumbnail)));
+ gfx::JPEGCodec::Decode(kWeewarThumbnail, sizeof(kWeewarThumbnail)));
history_service->SetPageThumbnail(url, *bitmap, score);
}
}

Powered by Google App Engine
This is Rietveld 408576698