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

Unified Diff: chrome/browser/geolocation/geolocation_confirm_infobar_delegate_factory.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_factory.cc
diff --git a/chrome/browser/geolocation/geolocation_confirm_infobar_delegate_factory.cc b/chrome/browser/geolocation/geolocation_confirm_infobar_delegate_factory.cc
new file mode 100644
index 0000000000000000000000000000000000000000..3eb69dc72fe286b2da40901e79707c3d7179ba44
--- /dev/null
+++ b/chrome/browser/geolocation/geolocation_confirm_infobar_delegate_factory.cc
@@ -0,0 +1,41 @@
+// 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_factory.h"
+
+#if defined(OS_ANDROID)
+#include "chrome/browser/geolocation/geolocation_confirm_infobar_delegate_android.h"
+#else
+#include "chrome/browser/geolocation/geolocation_confirm_infobar_delegate.h"
+#endif
+
+GeolocationConfirmInfoBarDelegate*
+ GeolocationConfirmInfoBarDelegateFactory::Create(
+ 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) {
+#if defined(OS_ANDROID)
+ return new GeolocationConfirmInfoBarDelegateAndroid(
+ infobar_helper,
+ controller,
+ render_process_id,
+ render_view_id,
+ bridge_id,
+ requesting_frame_url,
+ display_languages);
+#else
+ return new GeolocationConfirmInfoBarDelegate(
+ infobar_helper,
+ controller,
+ render_process_id,
+ render_view_id,
+ bridge_id,
+ requesting_frame_url,
+ display_languages);
+#endif
+}

Powered by Google App Engine
This is Rietveld 408576698