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 InfoBarService* infobar_service, | |
16 GeolocationInfoBarQueueController* controller, | |
17 const GeolocationPermissionRequestID& id, | |
18 const GURL& requesting_frame_url, | |
19 const std::string& display_languages) { | |
20 #if defined(OS_ANDROID) | |
21 return new GeolocationConfirmInfoBarDelegateAndroid( | |
22 #else | |
23 return new GeolocationConfirmInfoBarDelegate( | |
24 #endif | |
25 infobar_service, controller, id, requesting_frame_url, display_languages); | |
26 } | |
OLD | NEW |