diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-05 03:35:34 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-05 03:35:34 +0000 |
commit | faec631688b3e0c87032d95a47cc945613431f45 (patch) | |
tree | 52e0372c6aa7ef7a3eef3e50e18aaef4d7f3dea8 /chrome/browser/bookmarks | |
parent | 882b7b2ac4db4348b28f0de68e48febbfd814a70 (diff) | |
download | chromium_src-faec631688b3e0c87032d95a47cc945613431f45.zip chromium_src-faec631688b3e0c87032d95a47cc945613431f45.tar.gz chromium_src-faec631688b3e0c87032d95a47cc945613431f45.tar.bz2 |
Rename ChromeThread to BrowserThread Part 1:
- Add a typedef ChromeThread BrowserThread
- Rename the entries under autofill and bookmarks from ChromeThread to BrowserThread.
Reason: "ChromeThread should be called BrowserThread to emphasize that it's a
browser process only concept."
BUG=56926
TEST=trybots
Review URL: http://codereview.chromium.org/3400026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61476 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/bookmarks')
7 files changed, 26 insertions, 26 deletions
diff --git a/chrome/browser/bookmarks/bookmark_context_menu_controller_unittest.cc b/chrome/browser/bookmarks/bookmark_context_menu_controller_unittest.cc index 8ef7362..1a909f2 100644 --- a/chrome/browser/bookmarks/bookmark_context_menu_controller_unittest.cc +++ b/chrome/browser/bookmarks/bookmark_context_menu_controller_unittest.cc @@ -36,8 +36,8 @@ class TestingPageNavigator : public PageNavigator { class BookmarkContextMenuControllerTest : public testing::Test { public: BookmarkContextMenuControllerTest() - : ui_thread_(ChromeThread::UI, &message_loop_), - file_thread_(ChromeThread::FILE, &message_loop_), + : ui_thread_(BrowserThread::UI, &message_loop_), + file_thread_(BrowserThread::FILE, &message_loop_), model_(NULL) { } @@ -67,8 +67,8 @@ class BookmarkContextMenuControllerTest : public testing::Test { protected: MessageLoopForUI message_loop_; - ChromeThread ui_thread_; - ChromeThread file_thread_; + BrowserThread ui_thread_; + BrowserThread file_thread_; scoped_ptr<TestingProfile> profile_; BookmarkModel* model_; TestingPageNavigator navigator_; diff --git a/chrome/browser/bookmarks/bookmark_drag_data_unittest.cc b/chrome/browser/bookmarks/bookmark_drag_data_unittest.cc index 434a537..833c7d3 100644 --- a/chrome/browser/bookmarks/bookmark_drag_data_unittest.cc +++ b/chrome/browser/bookmarks/bookmark_drag_data_unittest.cc @@ -18,13 +18,13 @@ class BookmarkDragDataTest : public testing::Test { public: BookmarkDragDataTest() - : ui_thread_(ChromeThread::UI, &loop_), - file_thread_(ChromeThread::FILE, &loop_) { } + : ui_thread_(BrowserThread::UI, &loop_), + file_thread_(BrowserThread::FILE, &loop_) { } private: MessageLoop loop_; - ChromeThread ui_thread_; - ChromeThread file_thread_; + BrowserThread ui_thread_; + BrowserThread file_thread_; }; namespace { diff --git a/chrome/browser/bookmarks/bookmark_html_writer.cc b/chrome/browser/bookmarks/bookmark_html_writer.cc index 8631c1a..5e90c18 100644 --- a/chrome/browser/bookmarks/bookmark_html_writer.cc +++ b/chrome/browser/bookmarks/bookmark_html_writer.cc @@ -418,7 +418,7 @@ void BookmarkFaviconFetcher::ExecuteWriter() { // for the duration of the write), as such we make a copy of the // BookmarkModel using BookmarkCodec then write from that. BookmarkCodec codec; - ChromeThread::PostTask(ChromeThread::FILE, FROM_HERE, + BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE, new Writer(codec.Encode(profile_->GetBookmarkModel()), path_, favicons_map_.release(), diff --git a/chrome/browser/bookmarks/bookmark_html_writer_unittest.cc b/chrome/browser/bookmarks/bookmark_html_writer_unittest.cc index 5789449..db22f10 100644 --- a/chrome/browser/bookmarks/bookmark_html_writer_unittest.cc +++ b/chrome/browser/bookmarks/bookmark_html_writer_unittest.cc @@ -143,8 +143,8 @@ class BookmarksObserver : public BookmarksExportObserver { // way of bookmark_html_writer, then using the importer to read it back in. TEST_F(BookmarkHTMLWriterTest, Test) { MessageLoop message_loop; - ChromeThread fake_ui_thread(ChromeThread::UI, &message_loop); - ChromeThread fake_file_thread(ChromeThread::FILE, &message_loop); + BrowserThread fake_ui_thread(BrowserThread::UI, &message_loop); + BrowserThread fake_file_thread(BrowserThread::FILE, &message_loop); TestingProfile profile; profile.CreateHistoryService(true, false); diff --git a/chrome/browser/bookmarks/bookmark_index_unittest.cc b/chrome/browser/bookmarks/bookmark_index_unittest.cc index 94a2e16..9decbd7 100644 --- a/chrome/browser/bookmarks/bookmark_index_unittest.cc +++ b/chrome/browser/bookmarks/bookmark_index_unittest.cc @@ -222,8 +222,8 @@ TEST_F(BookmarkIndexTest, GetResultsSortedByTypedCount) { // This ensures MessageLoop::current() will exist, which is needed by // TestingProfile::BlockUntilHistoryProcessesPendingRequests(). MessageLoop loop(MessageLoop::TYPE_DEFAULT); - ChromeThread ui_thread(ChromeThread::UI, &loop); - ChromeThread file_thread(ChromeThread::FILE, &loop); + BrowserThread ui_thread(BrowserThread::UI, &loop); + BrowserThread file_thread(BrowserThread::FILE, &loop); TestingProfile profile; profile.CreateHistoryService(true, false); diff --git a/chrome/browser/bookmarks/bookmark_model_unittest.cc b/chrome/browser/bookmarks/bookmark_model_unittest.cc index 0bf7534..0286138 100644 --- a/chrome/browser/bookmarks/bookmark_model_unittest.cc +++ b/chrome/browser/bookmarks/bookmark_model_unittest.cc @@ -649,8 +649,8 @@ class BookmarkModelTestWithProfile : public testing::Test, public BookmarkModelObserver { public: BookmarkModelTestWithProfile() - : ui_thread_(ChromeThread::UI, &message_loop_), - file_thread_(ChromeThread::FILE, &message_loop_) {} + : ui_thread_(BrowserThread::UI, &message_loop_), + file_thread_(BrowserThread::FILE, &message_loop_) {} virtual void SetUp() { } @@ -742,8 +742,8 @@ class BookmarkModelTestWithProfile : public testing::Test, const BookmarkNode* node) {} MessageLoopForUI message_loop_; - ChromeThread ui_thread_; - ChromeThread file_thread_; + BrowserThread ui_thread_; + BrowserThread file_thread_; }; // Creates a set of nodes in the bookmark bar model, then recreates the diff --git a/chrome/browser/bookmarks/bookmark_storage.cc b/chrome/browser/bookmarks/bookmark_storage.cc index 6cfe003..870592c 100644 --- a/chrome/browser/bookmarks/bookmark_storage.cc +++ b/chrome/browser/bookmarks/bookmark_storage.cc @@ -99,8 +99,8 @@ class BookmarkStorage::LoadTask : public Task { } } - ChromeThread::PostTask( - ChromeThread::UI, FROM_HERE, + BrowserThread::PostTask( + BrowserThread::UI, FROM_HERE, NewRunnableMethod( storage_.get(), &BookmarkStorage::OnLoadFinished, bookmark_file_exists, path_)); @@ -147,12 +147,12 @@ BookmarkStorage::BookmarkStorage(Profile* profile, BookmarkModel* model) : profile_(profile), model_(model), writer_(profile->GetPath().Append(chrome::kBookmarksFileName), - ChromeThread::GetMessageLoopProxyForThread(ChromeThread::FILE)), + BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE)), tmp_history_path_( profile->GetPath().Append(chrome::kHistoryBookmarksFileName)) { writer_.set_commit_interval(base::TimeDelta::FromMilliseconds(kSaveDelayMS)); - ChromeThread::PostTask( - ChromeThread::FILE, FROM_HERE, new BackupTask(writer_.path())); + BrowserThread::PostTask( + BrowserThread::FILE, FROM_HERE, new BackupTask(writer_.path())); } BookmarkStorage::~BookmarkStorage() { @@ -168,8 +168,8 @@ void BookmarkStorage::LoadBookmarks(BookmarkLoadDetails* details) { } void BookmarkStorage::DoLoadBookmarks(const FilePath& path) { - ChromeThread::PostTask( - ChromeThread::FILE, FROM_HERE, new LoadTask(path, this, details_.get())); + BrowserThread::PostTask( + BrowserThread::FILE, FROM_HERE, new LoadTask(path, this, details_.get())); } void BookmarkStorage::MigrateFromHistory() { @@ -244,8 +244,8 @@ void BookmarkStorage::OnLoadFinished(bool file_exists, const FilePath& path) { SaveNow(); // Clean up after migration from history. - ChromeThread::PostTask( - ChromeThread::FILE, FROM_HERE, new FileDeleteTask(tmp_history_path_)); + BrowserThread::PostTask( + BrowserThread::FILE, FROM_HERE, new FileDeleteTask(tmp_history_path_)); } } |