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

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

Issue 11186010: Update geolocation infobar to handle Android system settings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Failed to upload 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.h
diff --git a/chrome/browser/geolocation/geolocation_confirm_infobar_delegate_android.h b/chrome/browser/geolocation/geolocation_confirm_infobar_delegate_android.h
index 22dba56fb71af4a267672042a29d214ec11109bb..fc6217b72335e947d473f1759c30ddeb1e398a9c 100644
--- a/chrome/browser/geolocation/geolocation_confirm_infobar_delegate_android.h
+++ b/chrome/browser/geolocation/geolocation_confirm_infobar_delegate_android.h
@@ -5,8 +5,11 @@
#ifndef CHROME_BROWSER_GEOLOCATION_GEOLOCATION_CONFIRM_INFOBAR_DELEGATE_ANDROID_H_
#define CHROME_BROWSER_GEOLOCATION_GEOLOCATION_CONFIRM_INFOBAR_DELEGATE_ANDROID_H_
+#include "base/memory/scoped_ptr.h"
#include "chrome/browser/geolocation/geolocation_confirm_infobar_delegate.h"
+class GoogleLocationSettingsHelper;
+
class GeolocationConfirmInfoBarDelegateAndroid
: public GeolocationConfirmInfoBarDelegate {
public:
@@ -18,10 +21,14 @@ class GeolocationConfirmInfoBarDelegateAndroid
int bridge_id,
const GURL& requesting_frame_url,
const std::string& display_languages);
+ virtual ~GeolocationConfirmInfoBarDelegateAndroid();
private:
// ConfirmInfoBarDelegate:
virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE;
+ virtual bool Accept() OVERRIDE;
+
+ scoped_ptr<GoogleLocationSettingsHelper> google_location_settings_helper_;
};
#endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_CONFIRM_INFOBAR_DELEGATE_ANDROID_H_

Powered by Google App Engine
This is Rietveld 408576698