| Index: chrome/browser/profile_manager.cc
|
| ===================================================================
|
| --- chrome/browser/profile_manager.cc (revision 30037)
|
| +++ chrome/browser/profile_manager.cc (working copy)
|
| @@ -236,8 +236,7 @@
|
|
|
| void ProfileManager::SuspendProfile(Profile* profile) {
|
| DCHECK(profile);
|
| - DCHECK(MessageLoop::current() ==
|
| - ChromeThread::GetMessageLoop(ChromeThread::IO));
|
| + DCHECK(ChromeThread::CurrentlyOn(ChromeThread::IO));
|
|
|
| for (URLRequestJobTracker::JobIterator i = g_url_request_job_tracker.begin();
|
| i != g_url_request_job_tracker.end(); ++i)
|
| @@ -249,14 +248,11 @@
|
|
|
| void ProfileManager::ResumeProfile(Profile* profile) {
|
| DCHECK(profile);
|
| - DCHECK(MessageLoop::current() ==
|
| - ChromeThread::GetMessageLoop(ChromeThread::IO));
|
| + DCHECK(ChromeThread::CurrentlyOn(ChromeThread::IO));
|
| profile->GetRequestContext()->GetURLRequestContext()->
|
| http_transaction_factory()->Suspend(false);
|
| }
|
|
|
| -
|
| -
|
| // static
|
| bool ProfileManager::IsProfile(const FilePath& path) {
|
| FilePath prefs_path = GetDefaultProfilePath(path);
|
|
|