summaryrefslogtreecommitdiffstats
path: root/chrome/browser/geolocation/geolocation_permission_context.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-10 05:00:51 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-10 05:00:51 +0000
commit0aa26f4be3c0590ca2876f017e6ad4f244dd35e3 (patch)
tree2f272ce104169abdab697cd5f81ca16bf2074ac3 /chrome/browser/geolocation/geolocation_permission_context.cc
parent945a25941ed4de145a5041cccbe5908c92aa0c3b (diff)
downloadchromium_src-0aa26f4be3c0590ca2876f017e6ad4f244dd35e3.zip
chromium_src-0aa26f4be3c0590ca2876f017e6ad4f244dd35e3.tar.gz
chromium_src-0aa26f4be3c0590ca2876f017e6ad4f244dd35e3.tar.bz2
Rename ChromeThread to BrowserThread Part11:
- Rename entries under geolocation, google, gtk, history and importer. BUG=56926 TEST=trybots Review URL: http://codereview.chromium.org/3646002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62106 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/geolocation/geolocation_permission_context.cc')
-rw-r--r--chrome/browser/geolocation/geolocation_permission_context.cc30
1 files changed, 15 insertions, 15 deletions
diff --git a/chrome/browser/geolocation/geolocation_permission_context.cc b/chrome/browser/geolocation/geolocation_permission_context.cc
index dd63132..43bf1b9 100644
--- a/chrome/browser/geolocation/geolocation_permission_context.cc
+++ b/chrome/browser/geolocation/geolocation_permission_context.cc
@@ -247,7 +247,7 @@ void GeolocationInfoBarQueueController::CancelInfoBarRequest(
void GeolocationInfoBarQueueController::OnInfoBarClosed(
int render_process_id, int render_view_id, int bridge_id) {
- DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI));
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
for (PendingInfoBarRequests::iterator i = pending_infobar_requests_.begin();
i != pending_infobar_requests_.end(); ++i) {
if (i->Equals(render_process_id, render_view_id, bridge_id)) {
@@ -261,7 +261,7 @@ void GeolocationInfoBarQueueController::OnInfoBarClosed(
void GeolocationInfoBarQueueController::OnPermissionSet(
int render_process_id, int render_view_id, int bridge_id,
const GURL& requesting_frame, const GURL& embedder, bool allowed) {
- DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI));
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
// Persist the permission.
ContentSetting content_setting =
allowed ? CONTENT_SETTING_ALLOW : CONTENT_SETTING_BLOCK;
@@ -350,15 +350,15 @@ GeolocationPermissionContext::~GeolocationPermissionContext() {
void GeolocationPermissionContext::RequestGeolocationPermission(
int render_process_id, int render_view_id, int bridge_id,
const GURL& requesting_frame) {
- if (!ChromeThread::CurrentlyOn(ChromeThread::UI)) {
- ChromeThread::PostTask(
- ChromeThread::UI, FROM_HERE,
+ if (!BrowserThread::CurrentlyOn(BrowserThread::UI)) {
+ BrowserThread::PostTask(
+ BrowserThread::UI, FROM_HERE,
NewRunnableMethod(this,
&GeolocationPermissionContext::RequestGeolocationPermission,
render_process_id, render_view_id, bridge_id, requesting_frame));
return;
}
- DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI));
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
ExtensionsService* extensions = profile_->GetExtensionsService();
if (extensions) {
@@ -423,7 +423,7 @@ void GeolocationPermissionContext::CancelGeolocationPermissionRequest(
void GeolocationPermissionContext::StartUpdatingRequested(
int render_process_id, int render_view_id, int bridge_id,
const GURL& requesting_frame) {
- DCHECK(ChromeThread::CurrentlyOn(ChromeThread::IO));
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
// Note we cannot store the arbitrator as a member as it is not thread safe.
GeolocationProvider* provider = GeolocationProvider::GetInstance();
@@ -446,7 +446,7 @@ void GeolocationPermissionContext::StopUpdatingRequested(
void GeolocationPermissionContext::NotifyPermissionSet(
int render_process_id, int render_view_id, int bridge_id,
const GURL& requesting_frame, bool allowed) {
- DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI));
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
TabContents* tab_contents =
tab_util::GetTabContentsByID(render_process_id, render_view_id);
@@ -465,8 +465,8 @@ void GeolocationPermissionContext::NotifyPermissionSet(
new ViewMsg_Geolocation_PermissionSet(render_view_id, bridge_id,
allowed));
if (allowed) {
- ChromeThread::PostTask(
- ChromeThread::IO, FROM_HERE,
+ BrowserThread::PostTask(
+ BrowserThread::IO, FROM_HERE,
NewRunnableMethod(this,
&GeolocationPermissionContext::NotifyArbitratorPermissionGranted,
requesting_frame));
@@ -475,21 +475,21 @@ void GeolocationPermissionContext::NotifyPermissionSet(
void GeolocationPermissionContext::NotifyArbitratorPermissionGranted(
const GURL& requesting_frame) {
- DCHECK(ChromeThread::CurrentlyOn(ChromeThread::IO));
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
GeolocationProvider::GetInstance()->OnPermissionGranted(requesting_frame);
}
void GeolocationPermissionContext::CancelPendingInfoBarRequest(
int render_process_id, int render_view_id, int bridge_id) {
- if (!ChromeThread::CurrentlyOn(ChromeThread::UI)) {
- ChromeThread::PostTask(
- ChromeThread::UI, FROM_HERE,
+ if (!BrowserThread::CurrentlyOn(BrowserThread::UI)) {
+ BrowserThread::PostTask(
+ BrowserThread::UI, FROM_HERE,
NewRunnableMethod(this,
&GeolocationPermissionContext::CancelPendingInfoBarRequest,
render_process_id, render_view_id, bridge_id));
return;
}
- DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI));
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
geolocation_infobar_queue_controller_->CancelInfoBarRequest(
render_process_id, render_view_id, bridge_id);
}