| 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_confirm_infobar_delegate_factor
y.h" | 5 #include "chrome/browser/geolocation/geolocation_confirm_infobar_delegate_factor
y.h" |
| 6 | 6 |
| 7 #if defined(OS_ANDROID) | 7 #if defined(OS_ANDROID) |
| 8 #include "chrome/browser/geolocation/geolocation_confirm_infobar_delegate_androi
d.h" | 8 #include "chrome/browser/geolocation/geolocation_confirm_infobar_delegate_androi
d.h" |
| 9 #else | 9 #else |
| 10 #include "chrome/browser/geolocation/geolocation_confirm_infobar_delegate.h" | 10 #include "chrome/browser/geolocation/geolocation_confirm_infobar_delegate.h" |
| 11 #endif | 11 #endif |
| 12 | 12 |
| 13 GeolocationConfirmInfoBarDelegate* | 13 GeolocationConfirmInfoBarDelegate* |
| 14 GeolocationConfirmInfoBarDelegateFactory::Create( | 14 GeolocationConfirmInfoBarDelegateFactory::Create( |
| 15 InfoBarTabHelper* infobar_helper, | 15 InfoBarTabHelper* infobar_helper, |
| 16 GeolocationInfoBarQueueController* controller, | 16 GeolocationInfoBarQueueController* controller, |
| 17 int render_process_id, | 17 const GeolocationPermissionRequestID& id, |
| 18 int render_view_id, | 18 const GURL& requesting_frame_url, |
| 19 int bridge_id, | 19 const std::string& display_languages) { |
| 20 const GURL& requesting_frame_url, | |
| 21 const std::string& display_languages) { | |
| 22 #if defined(OS_ANDROID) | 20 #if defined(OS_ANDROID) |
| 23 return new GeolocationConfirmInfoBarDelegateAndroid( | 21 return new GeolocationConfirmInfoBarDelegateAndroid( |
| 24 infobar_helper, | |
| 25 controller, | |
| 26 render_process_id, | |
| 27 render_view_id, | |
| 28 bridge_id, | |
| 29 requesting_frame_url, | |
| 30 display_languages); | |
| 31 #else | 22 #else |
| 32 return new GeolocationConfirmInfoBarDelegate( | 23 return new GeolocationConfirmInfoBarDelegate( |
| 33 infobar_helper, | |
| 34 controller, | |
| 35 render_process_id, | |
| 36 render_view_id, | |
| 37 bridge_id, | |
| 38 requesting_frame_url, | |
| 39 display_languages); | |
| 40 #endif | 24 #endif |
| 25 infobar_helper, controller, id, requesting_frame_url, display_languages); |
| 41 } | 26 } |
| OLD | NEW |