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 GeolocationConfirmInfoBarDelegate* |
| 8 GeolocationConfirmInfoBarDelegateFactory::Create( |
| 9 InfoBarTabHelper* infobar_helper, |
| 10 GeolocationInfoBarQueueController* controller, |
| 11 int render_process_id, |
| 12 int render_view_id, |
| 13 int bridge_id, |
| 14 const GURL& requesting_frame_url, |
| 15 const std::string& display_languages) { |
| 16 #if defined(OS_ANDROID) |
| 17 return new GeolocationConfirmInfoBarDelegateAndroid( |
| 18 infobar_helper, |
| 19 controller, |
| 20 render_process_id, |
| 21 render_view_id, |
| 22 bridge_id, |
| 23 requesting_frame_url, |
| 24 display_languages); |
| 25 #else |
| 26 return new GeolocationConfirmInfoBarDelegate( |
| 27 infobar_helper, |
| 28 controller, |
| 29 render_process_id, |
| 30 render_view_id, |
| 31 bridge_id, |
| 32 requesting_frame_url, |
| 33 display_languages); |
| 34 #endif |
| 35 } |
OLD | NEW |