summaryrefslogtreecommitdiffstats
path: root/chrome/tools/profiles
diff options
context:
space:
mode:
authorjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-28 12:51:39 +0000
committerjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-28 12:51:39 +0000
commit042666f262a0c2ff601402e95f94fe9664a03f17 (patch)
tree508140a07a104fd3dd03b4c4c6548161de30f67f /chrome/tools/profiles
parent1d697f38d70b8edaca243a49f790b525c1c95a9d (diff)
downloadchromium_src-042666f262a0c2ff601402e95f94fe9664a03f17.zip
chromium_src-042666f262a0c2ff601402e95f94fe9664a03f17.tar.gz
chromium_src-042666f262a0c2ff601402e95f94fe9664a03f17.tar.bz2
Have content/ create and destroy its own threads.
Change embedding API and embedders to allow for this. Push inheritance of base::Thread down to content::BrowserThreadImpl so that content::BrowserThread is just a namespace for API functions. This change temporarily disables chrome_frame_net_tests as agreed by the CF lead, see bug 105435. TBR=ben@chromium.org (IWYU change only) BUG=98716,104578,105435 Review URL: http://codereview.chromium.org/8477004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111695 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/tools/profiles')
-rw-r--r--chrome/tools/profiles/generate_profile.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/tools/profiles/generate_profile.cc b/chrome/tools/profiles/generate_profile.cc
index adebcd9..51c0f9c 100644
--- a/chrome/tools/profiles/generate_profile.cc
+++ b/chrome/tools/profiles/generate_profile.cc
@@ -23,6 +23,7 @@
#include "chrome/common/chrome_paths.h"
#include "chrome/common/thumbnail_score.h"
#include "chrome/test/base/testing_profile.h"
+#include "content/browser/browser_thread_impl.h"
#include "content/browser/notification_service_impl.h"
#include "content/public/browser/browser_thread.h"
#include "third_party/skia/include/core/SkBitmap.h"
@@ -236,8 +237,8 @@ int main(int argc, const char* argv[]) {
ResourceBundle::InitSharedInstance("en-US");
NotificationServiceImpl notification_service;
MessageLoopForUI message_loop;
- content::DeprecatedBrowserThread ui_thread(BrowserThread::UI, &message_loop);
- content::DeprecatedBrowserThread db_thread(BrowserThread::DB, &message_loop);
+ content::BrowserThreadImpl ui_thread(BrowserThread::UI, &message_loop);
+ content::BrowserThreadImpl db_thread(BrowserThread::DB, &message_loop);
TestingProfile profile;
profile.CreateHistoryService(false, false);
if (types & TOP_SITES) {