OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_queue_controller_androi
d.h" | 5 #include "chrome/browser/geolocation/geolocation_infobar_queue_controller_androi
d.h" |
6 | 6 |
7 #include "chrome/browser/geolocation/geolocation_confirm_infobar_delegate_androi
d.h" | 7 #include "chrome/browser/geolocation/geolocation_confirm_infobar_delegate_androi
d.h" |
8 | 8 |
9 GeolocationInfoBarQueueControllerAndroid:: | 9 GeolocationInfoBarQueueControllerAndroid:: |
10 GeolocationInfoBarQueueControllerAndroid(Profile* profile) | 10 GeolocationInfoBarQueueControllerAndroid(Profile* profile, |
11 : GeolocationInfoBarQueueController(profile) { | 11 GoogleLocationSettingsHelper* helper) |
| 12 : GeolocationInfoBarQueueController(profile), |
| 13 google_location_settings_helper_(helper) { |
12 } | 14 } |
13 | 15 |
14 GeolocationConfirmInfoBarDelegate* | 16 GeolocationConfirmInfoBarDelegate* |
15 GeolocationInfoBarQueueControllerAndroid::CreateInfoBarDelegate( | 17 GeolocationInfoBarQueueControllerAndroid::CreateInfoBarDelegate( |
16 InfoBarTabHelper* infobar_helper, | 18 InfoBarTabHelper* infobar_helper, |
17 GeolocationInfoBarQueueController* controller, | 19 GeolocationInfoBarQueueController* controller, |
18 int render_process_id, | 20 int render_process_id, |
19 int render_view_id, | 21 int render_view_id, |
20 int bridge_id, | 22 int bridge_id, |
21 const GURL& requesting_frame_url, | 23 const GURL& requesting_frame_url, |
22 const std::string& display_languages) { | 24 const std::string& display_languages) { |
23 return new GeolocationConfirmInfoBarDelegateAndroid( | 25 return new GeolocationConfirmInfoBarDelegateAndroid( |
| 26 google_location_settings_helper_, |
24 infobar_helper, | 27 infobar_helper, |
25 controller, | 28 controller, |
26 render_process_id, | 29 render_process_id, |
27 render_view_id, | 30 render_view_id, |
28 bridge_id, | 31 bridge_id, |
29 requesting_frame_url, | 32 requesting_frame_url, |
30 display_languages); | 33 display_languages); |
31 } | 34 } |
OLD | NEW |