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

Unified Diff: content/browser/geolocation/location_api_adapter_android.h

Issue 1159623009: content: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test build fix. Created 5 years, 6 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
Index: content/browser/geolocation/location_api_adapter_android.h
diff --git a/content/browser/geolocation/location_api_adapter_android.h b/content/browser/geolocation/location_api_adapter_android.h
index d1d2fa52ee74e21d4c4527c967d44d2c4ef0c426..8cba148ae2cd15ec47e86b6550574493910d99d3 100644
--- a/content/browser/geolocation/location_api_adapter_android.h
+++ b/content/browser/geolocation/location_api_adapter_android.h
@@ -9,9 +9,12 @@
#include "base/android/scoped_java_ref.h"
#include "base/memory/ref_counted.h"
#include "base/memory/singleton.h"
-#include "base/message_loop/message_loop_proxy.h"
#include "base/synchronization/lock.h"
+namespace base {
+class SingleThreadTaskRunner;
+}
+
namespace content {
class LocationProviderAndroid;
struct Geoposition;
@@ -73,7 +76,7 @@ class AndroidLocationApiAdapter {
// Guards against the following member which is accessed on Geolocation
// thread and the JNI main thread looper.
base::Lock lock_;
- scoped_refptr<base::MessageLoopProxy> message_loop_;
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698