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

Unified Diff: chrome/browser/geolocation/geolocation_confirm_infobar_delegate_android.cc

Issue 11188020: Introduce Android variants of ChromeGeolocationPermissionContext, GeolocationConfirmInfoBarDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix build error Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/geolocation/geolocation_confirm_infobar_delegate_android.cc
diff --git a/chrome/browser/geolocation/geolocation_confirm_infobar_delegate_android.cc b/chrome/browser/geolocation/geolocation_confirm_infobar_delegate_android.cc
new file mode 100644
index 0000000000000000000000000000000000000000..6581abcaff87074d0661496389bbd0097da85c88
--- /dev/null
+++ b/chrome/browser/geolocation/geolocation_confirm_infobar_delegate_android.cc
@@ -0,0 +1,35 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/geolocation/geolocation_confirm_infobar_delegate_android.h"
+
+#include "base/utf_string_conversions.h"
+#include "grit/generated_resources.h"
+#include "grit/locale_settings.h"
+#include "grit/theme_resources.h"
+#include "ui/base/l10n/l10n_util.h"
+
+GeolocationConfirmInfoBarDelegateAndroid::
+GeolocationConfirmInfoBarDelegateAndroid(
+ InfoBarTabHelper* infobar_helper,
+ GeolocationInfoBarQueueController* controller,
+ int render_process_id,
+ int render_view_id,
+ int bridge_id,
+ const GURL& requesting_frame_url,
+ const std::string& display_languages)
+ : GeolocationConfirmInfoBarDelegate(infobar_helper,
+ controller,
+ render_process_id,
+ render_view_id,
+ bridge_id,
+ requesting_frame_url,
+ display_languages) {
+}
+
+string16 GeolocationConfirmInfoBarDelegateAndroid::GetButtonLabel(
+ InfoBarButton button) const {
+ return l10n_util::GetStringUTF16((button == BUTTON_OK) ?
+ IDS_GEOLOCATION_ALLOW_BUTTON : IDS_GEOLOCATION_DENY_BUTTON);
+}

Powered by Google App Engine
This is Rietveld 408576698