summaryrefslogtreecommitdiffstats
path: root/chrome/tools
diff options
context:
space:
mode:
authormotek@chromium.org <motek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-16 01:19:26 +0000
committermotek@chromium.org <motek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-16 01:19:26 +0000
commit5190855f4334996035edd91636e6db7ed80aeebb (patch)
treee4487e88a77e37e0c4e872d839365a53cb6e823d /chrome/tools
parenta63fda0f7322dba4841b6e6bf19e8fef3aa13e95 (diff)
downloadchromium_src-5190855f4334996035edd91636e6db7ed80aeebb.zip
chromium_src-5190855f4334996035edd91636e6db7ed80aeebb.tar.gz
chromium_src-5190855f4334996035edd91636e6db7ed80aeebb.tar.bz2
First installment of thumbnail updates: introducing ThumbnailService.
ThumbnailService is a ProfileKeyedService which currently forwards all calls to TopSites. On the other side I split the one and only ThumbnailGenerator class into a base and two classes inheriting from it: one suited for working with TopSites and another working with ThumbnailService. In the next step I plan to flesh out ThumbnailGeneratorRecent and introduce PrettyThumbnailServiceImpl. Between these two classes, we will try out ways for generating nicer (and more) thumbnails. BUG=155269 Review URL: https://chromiumcodereview.appspot.com/11054020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162020 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/tools')
-rw-r--r--chrome/tools/profiles/generate_profile.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/tools/profiles/generate_profile.cc b/chrome/tools/profiles/generate_profile.cc
index 6a5e675..08f0170 100644
--- a/chrome/tools/profiles/generate_profile.cc
+++ b/chrome/tools/profiles/generate_profile.cc
@@ -185,7 +185,7 @@ void InsertURLBatch(Profile* profile,
const SkBitmap& bitmap = (RandomInt(0, 2) == 0) ? *google_bitmap :
*weewar_bitmap;
gfx::Image image(bitmap);
- top_sites->SetPageThumbnail(url, &image, score);
+ top_sites->SetPageThumbnail(url, image, score);
}
previous_url = url;