summaryrefslogtreecommitdiffstats
path: root/chrome/browser/platform_util_chromeos.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-11 02:45:52 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-11 02:45:52 +0000
commitf8b3ef8aab85985cb74d748112a1a3ec8e2b7ed8 (patch)
tree3bca9c7a2c36af1c29ae37e0668be3ee1849356a /chrome/browser/platform_util_chromeos.cc
parentad27b85ef15c7446744911b776a733842f8e9206 (diff)
downloadchromium_src-f8b3ef8aab85985cb74d748112a1a3ec8e2b7ed8.zip
chromium_src-f8b3ef8aab85985cb74d748112a1a3ec8e2b7ed8.tar.gz
chromium_src-f8b3ef8aab85985cb74d748112a1a3ec8e2b7ed8.tar.bz2
Rename ChromeThread to BrowserThread Part15:
- Rename entries in more 40 files under chrome/browser. BUG=56926 TEST=trybots Review URL: http://codereview.chromium.org/3704001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62130 0039d316-1c4b-4281-b951-d872f2087c98
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));
}
}