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

Side by Side Diff: content/public/test/nested_message_pump_android.cc

Issue 2146753002: Android: Remove unneeded RegisterNatives() calls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android: Don't require RegisterNatives if there are none Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/public/test/nested_message_pump_android.h" 5 #include "content/public/test/nested_message_pump_android.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/scoped_java_ref.h" 8 #include "base/android/scoped_java_ref.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 const base::TimeTicks& delayed_work_time) { 144 const base::TimeTicks& delayed_work_time) {
145 if (state_) { 145 if (state_) {
146 // We know that we can't be blocked on Wait right now since this method can 146 // We know that we can't be blocked on Wait right now since this method can
147 // only be called on the same thread as Run, so we only need to update our 147 // only be called on the same thread as Run, so we only need to update our
148 // record of how long to sleep when we do sleep. 148 // record of how long to sleep when we do sleep.
149 state_->delayed_work_time = delayed_work_time; 149 state_->delayed_work_time = delayed_work_time;
150 return; 150 return;
151 } 151 }
152 } 152 }
153 153
154 // static
155 bool NestedMessagePumpAndroid::RegisterJni(JNIEnv* env) {
156 return RegisterNativesImpl(env);
157 }
158
159 } // namespace content 154 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698