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

Unified Diff: chrome/browser/geolocation/chrome_geolocation_permission_context.h

Issue 11590002: Destroy GeolocationInfobarQueueController on UI thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nit. Created 7 years, 11 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 | « no previous file | chrome/browser/geolocation/chrome_geolocation_permission_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/geolocation/chrome_geolocation_permission_context.h
diff --git a/chrome/browser/geolocation/chrome_geolocation_permission_context.h b/chrome/browser/geolocation/chrome_geolocation_permission_context.h
index 4f480f88146a15eb0ba4a86661c41fe6e3fc1457..fde8d5ab223c00fd2889fdebcd553f1f33e4b806 100644
--- a/chrome/browser/geolocation/chrome_geolocation_permission_context.h
+++ b/chrome/browser/geolocation/chrome_geolocation_permission_context.h
@@ -35,6 +35,9 @@ class ChromeGeolocationPermissionContext
int bridge_id,
const GURL& requesting_frame) OVERRIDE;
+ // Called on the UI thread when the profile is about to be destroyed.
+ void ShutdownOnUIThread();
+
protected:
virtual ~ChromeGeolocationPermissionContext();
@@ -81,9 +84,9 @@ class ChromeGeolocationPermissionContext
// Removes any pending InfoBar request.
void CancelPendingInfoBarRequest(const GeolocationPermissionRequestID& id);
- // This must only be accessed from the UI thread.
+ // These must only be accessed from the UI thread.
Profile* const profile_;
-
+ bool shutting_down_;
scoped_ptr<GeolocationInfoBarQueueController>
geolocation_infobar_queue_controller_;
« no previous file with comments | « no previous file | chrome/browser/geolocation/chrome_geolocation_permission_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698