Index: components/gcm_driver/instance_id/instance_id_android.cc |
diff --git a/components/gcm_driver/instance_id/instance_id_android.cc b/components/gcm_driver/instance_id/instance_id_android.cc |
index f2fbd212d833d84a676f69a605ef609bcdcaffe1..a60b5de4f060573082e36e09a47840ca8645c4df 100644 |
--- a/components/gcm_driver/instance_id/instance_id_android.cc |
+++ b/components/gcm_driver/instance_id/instance_id_android.cc |
@@ -30,6 +30,12 @@ bool InstanceIDAndroid::RegisterJni(JNIEnv* env) { |
} |
// static |
+void InstanceIDAndroid::SetBlockOnAsyncTasksForTesting(bool block) { |
+ JNIEnv* env = AttachCurrentThread(); |
+ Java_InstanceIDBridge_setBlockOnAsyncTasksForTesting(env, block); |
+} |
+ |
+// static |
scoped_ptr<InstanceID> InstanceID::Create(const std::string& app_id, |
gcm::InstanceIDHandler* unused) { |
return make_scoped_ptr(new InstanceIDAndroid(app_id)); |