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

Side by Side Diff: chrome/browser/geolocation/geolocation_permission_context_android.cc

Issue 674273002: Cleanup: Remove unneeded chrome/common/pref_names.h includes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 1 month 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 "chrome/browser/geolocation/geolocation_permission_context_android.h" 5 #include "chrome/browser/geolocation/geolocation_permission_context_android.h"
6 6
7 #include "base/prefs/pref_service.h" 7 #include "base/prefs/pref_service.h"
8 #include "chrome/browser/android/google_location_settings_helper.h" 8 #include "chrome/browser/android/google_location_settings_helper.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/common/pref_names.h"
11 #include "content/public/browser/browser_thread.h" 10 #include "content/public/browser/browser_thread.h"
12 #include "content/public/browser/web_contents.h" 11 #include "content/public/browser/web_contents.h"
13 12
14 GeolocationPermissionContextAndroid:: 13 GeolocationPermissionContextAndroid::
15 PermissionRequestInfo::PermissionRequestInfo() 14 PermissionRequestInfo::PermissionRequestInfo()
16 : id(0, 0, 0, GURL()), 15 : id(0, 0, 0, GURL()),
17 user_gesture(false) { 16 user_gesture(false) {
18 } 17 }
19 18
20 GeolocationPermissionContextAndroid:: 19 GeolocationPermissionContextAndroid::
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // back to the UI thread. 91 // back to the UI thread.
93 content::BrowserThread::PostTask( 92 content::BrowserThread::PostTask(
94 content::BrowserThread::UI, FROM_HERE, ui_closure); 93 content::BrowserThread::UI, FROM_HERE, ui_closure);
95 } 94 }
96 95
97 96
98 void GeolocationPermissionContextAndroid::InterceptPermissionCheck( 97 void GeolocationPermissionContextAndroid::InterceptPermissionCheck(
99 const BrowserPermissionCallback& callback, bool granted) { 98 const BrowserPermissionCallback& callback, bool granted) {
100 callback.Run(granted); 99 callback.Run(granted);
101 } 100 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698