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

Side by Side Diff: chrome/tools/profiles/generate_profile.cc

Issue 6312156: Change includes of gfx/* to ui/gfx/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/ui_test_utils.cc ('k') | chrome/utility/utility_thread.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This program generates a user profile and history by randomly generating 5 // This program generates a user profile and history by randomly generating
6 // data and feeding it to the history service. 6 // data and feeding it to the history service.
7 7
8 #include "chrome/tools/profiles/thumbnail-inl.h" 8 #include "chrome/tools/profiles/thumbnail-inl.h"
9 9
10 #include "app/app_paths.h" 10 #include "app/app_paths.h"
11 #include "base/at_exit.h" 11 #include "base/at_exit.h"
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/file_path.h" 13 #include "base/file_path.h"
14 #include "base/file_util.h" 14 #include "base/file_util.h"
15 #include "base/i18n/icu_util.h" 15 #include "base/i18n/icu_util.h"
16 #include "base/message_loop.h" 16 #include "base/message_loop.h"
17 #include "base/path_service.h" 17 #include "base/path_service.h"
18 #include "base/process_util.h" 18 #include "base/process_util.h"
19 #include "base/string_number_conversions.h" 19 #include "base/string_number_conversions.h"
20 #include "base/time.h" 20 #include "base/time.h"
21 #include "base/utf_string_conversions.h" 21 #include "base/utf_string_conversions.h"
22 #include "chrome/browser/browser_thread.h" 22 #include "chrome/browser/browser_thread.h"
23 #include "chrome/browser/history/history.h" 23 #include "chrome/browser/history/history.h"
24 #include "chrome/browser/history/top_sites.h" 24 #include "chrome/browser/history/top_sites.h"
25 #include "chrome/common/chrome_paths.h" 25 #include "chrome/common/chrome_paths.h"
26 #include "chrome/test/testing_profile.h" 26 #include "chrome/test/testing_profile.h"
27 #include "chrome/common/thumbnail_score.h" 27 #include "chrome/common/thumbnail_score.h"
28 #include "chrome/common/notification_service.h" 28 #include "chrome/common/notification_service.h"
29 #include "gfx/codec/jpeg_codec.h"
30 #include "third_party/skia/include/core/SkBitmap.h" 29 #include "third_party/skia/include/core/SkBitmap.h"
31 #include "ui/base/resource/resource_bundle.h" 30 #include "ui/base/resource/resource_bundle.h"
32 #include "ui/base/ui_base_paths.h" 31 #include "ui/base/ui_base_paths.h"
32 #include "ui/gfx/codec/jpeg_codec.h"
33 33
34 using base::Time; 34 using base::Time;
35 35
36 // Addition types data can be generated for. By default only urls/visits are 36 // Addition types data can be generated for. By default only urls/visits are
37 // added. 37 // added.
38 enum Types { 38 enum Types {
39 TOP_SITES = 1 << 0, 39 TOP_SITES = 1 << 0,
40 FULL_TEXT = 1 << 1 40 FULL_TEXT = 1 << 1
41 }; 41 };
42 42
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 dst_file.value().c_str()); 279 dst_file.value().c_str());
280 if (!file_util::CopyFile(path, dst_file)) { 280 if (!file_util::CopyFile(path, dst_file)) {
281 printf("Copying file failed: %d\n", ::GetLastError()); 281 printf("Copying file failed: %d\n", ::GetLastError());
282 return -1; 282 return -1;
283 } 283 }
284 path = file_iterator.Next(); 284 path = file_iterator.Next();
285 } 285 }
286 286
287 return 0; 287 return 0;
288 } 288 }
OLDNEW
« no previous file with comments | « chrome/test/ui_test_utils.cc ('k') | chrome/utility/utility_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698