OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/geolocation/geolocation_confirm_infobar_delegate_factor
y.h" |
| 6 |
| 7 #if defined(OS_ANDROID) |
| 8 #include "chrome/browser/geolocation/geolocation_confirm_infobar_delegate_androi
d.h" |
| 9 #else |
| 10 #include "chrome/browser/geolocation/geolocation_confirm_infobar_delegate.h" |
| 11 #endif |
| 12 |
| 13 GeolocationConfirmInfoBarDelegate* |
| 14 GeolocationConfirmInfoBarDelegateFactory::Create( |
| 15 InfoBarTabHelper* infobar_helper, |
| 16 GeolocationInfoBarQueueController* controller, |
| 17 int render_process_id, |
| 18 int render_view_id, |
| 19 int bridge_id, |
| 20 const GURL& requesting_frame_url, |
| 21 const std::string& display_languages) { |
| 22 #if defined(OS_ANDROID) |
| 23 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 |
| 32 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 |
| 41 } |
OLD | NEW |