Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: chrome/browser/geolocation/geolocation_infobar_delegate_android.cc

Issue 16561007: Use a direct include of utf_string_conversions.h in chrome/browser/, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/geolocation/geolocation_browsertest.cc ('k') | chrome/browser/geolocation/geolocation_settings_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698