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

Unified Diff: chrome/browser/sxs_linux.cc

Issue 297023002: Cleanup: Convert chrome_browser_main_linux.cc to use the blocking thread pool. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 7 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/sxs_linux.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sxs_linux.cc
===================================================================
--- chrome/browser/sxs_linux.cc (revision 272375)
+++ chrome/browser/sxs_linux.cc (working copy)
@@ -89,7 +89,7 @@
namespace sxs_linux {
void AddChannelMarkToUserDataDir() {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::FILE));
+ DCHECK(content::BrowserThread::GetBlockingPool()->RunsTasksOnCurrentThread());
base::FilePath user_data_dir;
if (!PathService::Get(chrome::DIR_USER_DATA, &user_data_dir)) {
LOG(ERROR) << "Failed to get user data dir path. The profile will not be "
@@ -105,7 +105,7 @@
}
bool ShouldMigrateUserDataDir() {
- return CommandLine::ForCurrentProcess()->HasSwitch(
+ return base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kMigrateDataDirForSxS);
}
@@ -142,7 +142,7 @@
}
base::FilePath target_path =
- CommandLine::ForCurrentProcess()->GetSwitchValuePath(
+ base::CommandLine::ForCurrentProcess()->GetSwitchValuePath(
switches::kMigrateDataDirForSxS);
if (!base::Move(source_path, target_path)) {
« no previous file with comments | « chrome/browser/sxs_linux.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698