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

Unified Diff: chrome/browser/prefs/pref_value_store.cc

Issue 3660002: Rename ChromeThread to BrowserThread Part13: (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: Created 10 years, 2 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
« no previous file with comments | « chrome/browser/prefs/pref_value_store.h ('k') | chrome/browser/prefs/pref_value_store_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prefs/pref_value_store.cc
diff --git a/chrome/browser/prefs/pref_value_store.cc b/chrome/browser/prefs/pref_value_store.cc
index ff2a7a41e2df1cb80850b30c8d4067895dc34123..078aac17b6a1d7aa7e3d3567d474d647743f1d3f 100644
--- a/chrome/browser/prefs/pref_value_store.cc
+++ b/chrome/browser/prefs/pref_value_store.cc
@@ -46,7 +46,7 @@ PrefValueStore* PrefValueStore::CreatePrefValueStore(
JsonPrefStore* user = new JsonPrefStore(
pref_filename,
- ChromeThread::GetMessageLoopProxyForThread(ChromeThread::FILE));
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE));
DefaultPrefStore* default_store = new DefaultPrefStore();
if (!user_only) {
@@ -286,12 +286,12 @@ void PrefValueStore::RefreshPolicyPrefsCompletion(
}
void PrefValueStore::RefreshPolicyPrefsOnFileThread(
- ChromeThread::ID calling_thread_id,
+ BrowserThread::ID calling_thread_id,
PrefStore* new_managed_pref_store,
PrefStore* new_recommended_pref_store,
AfterRefreshCallback* callback_pointer) {
scoped_ptr<AfterRefreshCallback> callback(callback_pointer);
- DCHECK(ChromeThread::CurrentlyOn(ChromeThread::FILE));
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
scoped_ptr<PrefStore> managed_pref_store(new_managed_pref_store);
scoped_ptr<PrefStore> recommended_pref_store(new_recommended_pref_store);
@@ -309,7 +309,7 @@ void PrefValueStore::RefreshPolicyPrefsOnFileThread(
return;
}
- ChromeThread::PostTask(
+ BrowserThread::PostTask(
calling_thread_id, FROM_HERE,
NewRunnableMethod(this,
&PrefValueStore::RefreshPolicyPrefsCompletion,
@@ -322,10 +322,10 @@ void PrefValueStore::RefreshPolicyPrefs(
PrefStore* new_managed_pref_store,
PrefStore* new_recommended_pref_store,
AfterRefreshCallback* callback) {
- ChromeThread::ID current_thread_id;
- CHECK(ChromeThread::GetCurrentThreadIdentifier(&current_thread_id));
- ChromeThread::PostTask(
- ChromeThread::FILE, FROM_HERE,
+ BrowserThread::ID current_thread_id;
+ CHECK(BrowserThread::GetCurrentThreadIdentifier(&current_thread_id));
+ BrowserThread::PostTask(
+ BrowserThread::FILE, FROM_HERE,
NewRunnableMethod(this,
&PrefValueStore::RefreshPolicyPrefsOnFileThread,
current_thread_id,
« no previous file with comments | « chrome/browser/prefs/pref_value_store.h ('k') | chrome/browser/prefs/pref_value_store_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698