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

Side by Side Diff: device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java

Issue 2032273002: If location services are turned off, have the BT chooser prompt the user to turn them on. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Fix scheib@'s comments Created 4 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 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 package org.chromium.device.bluetooth; 5 package org.chromium.device.bluetooth;
6 6
7 import android.Manifest; 7 import android.Manifest;
8 import android.annotation.TargetApi; 8 import android.annotation.TargetApi;
9 import android.bluetooth.BluetoothAdapter; 9 import android.bluetooth.BluetoothAdapter;
10 import android.bluetooth.BluetoothDevice; 10 import android.bluetooth.BluetoothDevice;
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 private final Context mContext; 159 private final Context mContext;
160 160
161 public ContextWrapper(Context context) { 161 public ContextWrapper(Context context) {
162 mContext = context; 162 mContext = context;
163 } 163 }
164 164
165 public boolean chromeHasLocationPermission() { 165 public boolean chromeHasLocationPermission() {
166 return LocationUtils.getInstance().chromiumHasLocationPermission(mCo ntext); 166 return LocationUtils.getInstance().chromiumHasLocationPermission(mCo ntext);
167 } 167 }
168 168
169 public boolean isSystemLocationSettingEnabled() {
170 return LocationUtils.getInstance().isSystemLocationSettingEnabled(mC ontext);
171 }
172
169 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter) { 173 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter) {
170 return mContext.registerReceiver(receiver, filter); 174 return mContext.registerReceiver(receiver, filter);
171 } 175 }
172 176
173 public void unregisterReceiver(BroadcastReceiver receiver) { 177 public void unregisterReceiver(BroadcastReceiver receiver) {
174 mContext.unregisterReceiver(receiver); 178 mContext.unregisterReceiver(receiver);
175 } 179 }
176 } 180 }
177 181
178 /** 182 /**
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 583
580 public byte[] getValue() { 584 public byte[] getValue() {
581 return mDescriptor.getValue(); 585 return mDescriptor.getValue();
582 } 586 }
583 587
584 public boolean setValue(byte[] value) { 588 public boolean setValue(byte[] value) {
585 return mDescriptor.setValue(value); 589 return mDescriptor.setValue(value);
586 } 590 }
587 } 591 }
588 } 592 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698