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_delegate_android.h" | 5 #include "chrome/browser/geolocation/geolocation_infobar_delegate_android.h" |
6 | 6 |
7 #include "base/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 #include "chrome/browser/android/google_location_settings_helper.h" | 8 #include "chrome/browser/android/google_location_settings_helper.h" |
9 #include "grit/generated_resources.h" | 9 #include "grit/generated_resources.h" |
10 #include "grit/locale_settings.h" | 10 #include "grit/locale_settings.h" |
11 #include "grit/theme_resources.h" | 11 #include "grit/theme_resources.h" |
12 #include "ui/base/l10n/l10n_util.h" | 12 #include "ui/base/l10n/l10n_util.h" |
13 | 13 |
14 GeolocationInfoBarDelegateAndroid::GeolocationInfoBarDelegateAndroid( | 14 GeolocationInfoBarDelegateAndroid::GeolocationInfoBarDelegateAndroid( |
15 InfoBarService* infobar_service, | 15 InfoBarService* infobar_service, |
16 GeolocationInfoBarQueueController* controller, | 16 GeolocationInfoBarQueueController* controller, |
17 const GeolocationPermissionRequestID& id, | 17 const GeolocationPermissionRequestID& id, |
(...skipping 22 matching lines...) Expand all Loading... |
40 } | 40 } |
41 | 41 |
42 string16 GeolocationInfoBarDelegateAndroid::GetButtonLabel( | 42 string16 GeolocationInfoBarDelegateAndroid::GetButtonLabel( |
43 InfoBarButton button) const { | 43 InfoBarButton button) const { |
44 if (button == BUTTON_OK) { | 44 if (button == BUTTON_OK) { |
45 return UTF8ToUTF16( | 45 return UTF8ToUTF16( |
46 google_location_settings_helper_->GetAcceptButtonLabel()); | 46 google_location_settings_helper_->GetAcceptButtonLabel()); |
47 } | 47 } |
48 return l10n_util::GetStringUTF16(IDS_GEOLOCATION_DENY_BUTTON); | 48 return l10n_util::GetStringUTF16(IDS_GEOLOCATION_DENY_BUTTON); |
49 } | 49 } |
OLD | NEW |