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

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

Issue 2675483002: Replace PermissionType in chrome/ with ContentSettingsType (Closed)
Patch Set: rebase + include content_settings_types.h more Created 3 years, 10 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 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_infobar_delegate_android.h" 5 #include "chrome/browser/geolocation/geolocation_infobar_delegate_android.h"
6 6
7 #include "chrome/browser/android/android_theme_resources.h" 7 #include "chrome/browser/android/android_theme_resources.h"
8 #include "chrome/grit/generated_resources.h" 8 #include "chrome/grit/generated_resources.h"
9 9
10 GeolocationInfoBarDelegateAndroid::GeolocationInfoBarDelegateAndroid( 10 GeolocationInfoBarDelegateAndroid::GeolocationInfoBarDelegateAndroid(
11 const GURL& requesting_frame, 11 const GURL& requesting_frame,
12 bool user_gesture, 12 bool user_gesture,
13 Profile* profile, 13 Profile* profile,
14 const PermissionSetCallback& callback) 14 const PermissionSetCallback& callback)
15 : PermissionInfoBarDelegate(requesting_frame, 15 : PermissionInfoBarDelegate(requesting_frame,
16 content::PermissionType::GEOLOCATION,
17 CONTENT_SETTINGS_TYPE_GEOLOCATION, 16 CONTENT_SETTINGS_TYPE_GEOLOCATION,
18 user_gesture, 17 user_gesture,
19 profile, 18 profile,
20 callback) {} 19 callback) {}
21 20
22 GeolocationInfoBarDelegateAndroid::~GeolocationInfoBarDelegateAndroid() {} 21 GeolocationInfoBarDelegateAndroid::~GeolocationInfoBarDelegateAndroid() {}
23 22
24 infobars::InfoBarDelegate::InfoBarIdentifier 23 infobars::InfoBarDelegate::InfoBarIdentifier
25 GeolocationInfoBarDelegateAndroid::GetIdentifier() const { 24 GeolocationInfoBarDelegateAndroid::GetIdentifier() const {
26 return GEOLOCATION_INFOBAR_DELEGATE_ANDROID; 25 return GEOLOCATION_INFOBAR_DELEGATE_ANDROID;
27 } 26 }
28 27
29 int GeolocationInfoBarDelegateAndroid::GetIconId() const { 28 int GeolocationInfoBarDelegateAndroid::GetIconId() const {
30 return IDR_ANDROID_INFOBAR_GEOLOCATION; 29 return IDR_ANDROID_INFOBAR_GEOLOCATION;
31 } 30 }
32 31
33 int GeolocationInfoBarDelegateAndroid::GetMessageResourceId() const { 32 int GeolocationInfoBarDelegateAndroid::GetMessageResourceId() const {
34 return IDS_GEOLOCATION_INFOBAR_QUESTION; 33 return IDS_GEOLOCATION_INFOBAR_QUESTION;
35 } 34 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/service_worker_apitest.cc ('k') | chrome/browser/geolocation/geolocation_permission_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698