summaryrefslogtreecommitdiffstats
path: root/chrome/browser/platform_util_chromeos.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/platform_util_chromeos.cc')
-rw-r--r--chrome/browser/platform_util_chromeos.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/chrome/browser/platform_util_chromeos.cc b/chrome/browser/platform_util_chromeos.cc
index 229563b..f08acf8 100644
--- a/chrome/browser/platform_util_chromeos.cc
+++ b/chrome/browser/platform_util_chromeos.cc
@@ -29,7 +29,7 @@ static const std::string kGmailComposeUrl =
// Opens file browser on UI thread.
void OpenFileBrowserOnUIThread(const FilePath& dir) {
- DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI));
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
Profile* profile;
profile = BrowserList::GetLastActive()->profile();
@@ -48,11 +48,11 @@ void ShowItemInFolder(const FilePath& full_path) {
if (!file_util::DirectoryExists(dir))
return;
- if (ChromeThread::CurrentlyOn(ChromeThread::UI)) {
+ if (BrowserThread::CurrentlyOn(BrowserThread::UI)) {
OpenFileBrowserOnUIThread(dir);
} else {
- ChromeThread::PostTask(
- ChromeThread::UI, FROM_HERE,
+ BrowserThread::PostTask(
+ BrowserThread::UI, FROM_HERE,
NewRunnableFunction(&OpenFileBrowserOnUIThread, dir));
}
}
@@ -71,9 +71,9 @@ void OpenItem(const FilePath& full_path) {
std::string path;
path = "file://";
path.append(full_path.value());
- if (!ChromeThread::CurrentlyOn(ChromeThread::UI)) {
- bool result = ChromeThread::PostTask(
- ChromeThread::UI, FROM_HERE,
+ if (!BrowserThread::CurrentlyOn(BrowserThread::UI)) {
+ bool result = BrowserThread::PostTask(
+ BrowserThread::UI, FROM_HERE,
NewRunnableFunction(&OpenItem, full_path));
DCHECK(result);
return;
@@ -97,8 +97,8 @@ void OpenItem(const FilePath& full_path) {
}
// Unknwon file type. Show an error message to user.
- ChromeThread::PostTask(
- ChromeThread::UI, FROM_HERE,
+ BrowserThread::PostTask(
+ BrowserThread::UI, FROM_HERE,
NewRunnableFunction(
&SimpleErrorBox,
static_cast<gfx::NativeWindow>(NULL),
@@ -117,8 +117,8 @@ void OpenExternal(const GURL& url) {
if (url.SchemeIs("mailto")) {
std::string string_url = kGmailComposeUrl;
string_url.append(url.spec());
- ChromeThread::PostTask(
- ChromeThread::UI, FROM_HERE, NewRunnableFunction(OpenURL, string_url));
+ BrowserThread::PostTask(
+ BrowserThread::UI, FROM_HERE, NewRunnableFunction(OpenURL, string_url));
}
}