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

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

Issue 2443463003: Remove PermissionInfoBarDelegate from desktop builds. (Closed)
Patch Set: Add comment explaining lifetime Created 4 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_infobar_delegate_android.cc
diff --git a/chrome/browser/geolocation/geolocation_infobar_delegate_android.cc b/chrome/browser/geolocation/geolocation_infobar_delegate_android.cc
index c2fb16aeb8e173956e13d090654fe3e5a431d976..de62c5c7456ffad75994940ea1032eba1076ef59 100644
--- a/chrome/browser/geolocation/geolocation_infobar_delegate_android.cc
+++ b/chrome/browser/geolocation/geolocation_infobar_delegate_android.cc
@@ -5,22 +5,7 @@
#include "chrome/browser/geolocation/geolocation_infobar_delegate_android.h"
#include "chrome/browser/android/android_theme_resources.h"
-#include "chrome/browser/infobars/infobar_service.h"
#include "chrome/grit/generated_resources.h"
-#include "components/infobars/core/infobar.h"
-
-// static
-infobars::InfoBar* GeolocationInfoBarDelegateAndroid::Create(
- InfoBarService* infobar_service,
- const GURL& requesting_frame,
- bool user_gesture,
- Profile* profile,
- const PermissionSetCallback& callback) {
- return infobar_service->AddInfoBar(
- CreatePermissionInfoBar(std::unique_ptr<PermissionInfoBarDelegate>(
- new GeolocationInfoBarDelegateAndroid(requesting_frame, user_gesture,
- profile, callback))));
-}
GeolocationInfoBarDelegateAndroid::GeolocationInfoBarDelegateAndroid(
const GURL& requesting_frame,

Powered by Google App Engine
This is Rietveld 408576698