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

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

Issue 1170623003: Revert "content: Remove use of MessageLoopProxy and deprecated MessageLoop APIs" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 8cba148ae2cd15ec47e86b6550574493910d99d3..d1d2fa52ee74e21d4c4527c967d44d2c4ef0c426 100644
--- a/content/browser/geolocation/location_api_adapter_android.h
+++ b/content/browser/geolocation/location_api_adapter_android.h
@@ -9,12 +9,9 @@
#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;
@@ -76,7 +73,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::SingleThreadTaskRunner> task_runner_;
+ scoped_refptr<base::MessageLoopProxy> message_loop_;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698