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

Side by Side Diff: chrome/browser/android/location_settings_impl.h

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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef CHROME_BROWSER_ANDROID_LOCATION_SETTINGS_IMPL_H_ 5 #ifndef CHROME_BROWSER_ANDROID_LOCATION_SETTINGS_IMPL_H_
6 #define CHROME_BROWSER_ANDROID_LOCATION_SETTINGS_IMPL_H_ 6 #define CHROME_BROWSER_ANDROID_LOCATION_SETTINGS_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/android/jni_weak_ref.h" 10 #include "base/android/jni_weak_ref.h"
11 #include "base/android/scoped_java_ref.h" 11 #include "base/android/scoped_java_ref.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "chrome/browser/android/location_settings.h" 13 #include "chrome/browser/android/location_settings.h"
14 14
15 class LocationSettingsImpl : public LocationSettings { 15 class LocationSettingsImpl : public LocationSettings {
16 public: 16 public:
17 LocationSettingsImpl(); 17 LocationSettingsImpl();
18 ~LocationSettingsImpl() override; 18 ~LocationSettingsImpl() override;
19 19
20 static bool Register(JNIEnv* env);
21
22 // LocationSettings implementation: 20 // LocationSettings implementation:
23 bool CanSitesRequestLocationPermission( 21 bool CanSitesRequestLocationPermission(
24 content::WebContents* web_contents) override; 22 content::WebContents* web_contents) override;
25 23
26 private: 24 private:
27 DISALLOW_COPY_AND_ASSIGN(LocationSettingsImpl); 25 DISALLOW_COPY_AND_ASSIGN(LocationSettingsImpl);
28 }; 26 };
29 27
30 #endif // CHROME_BROWSER_ANDROID_LOCATION_SETTINGS_IMPL_H_ 28 #endif // CHROME_BROWSER_ANDROID_LOCATION_SETTINGS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698