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

Unified Diff: chrome/browser/android/search_geolocation_disclosure_infobar_delegate.h

Issue 2475213002: Update the Google Search geolocation disclosure to make it more obvious. (Closed)
Patch Set: Created 4 years, 1 month 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/android/search_geolocation_disclosure_infobar_delegate.h
diff --git a/chrome/browser/android/search_geolocation_disclosure_infobar_delegate.h b/chrome/browser/android/search_geolocation_disclosure_infobar_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..f11aeff1feed359eae2f10bec56f02ec659d3e7e
--- /dev/null
+++ b/chrome/browser/android/search_geolocation_disclosure_infobar_delegate.h
@@ -0,0 +1,48 @@
+// Copyright 2016 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.
+
+#ifndef CHROME_BROWSER_ANDROID_SEARCH_GEOLOCATION_DISCLOSURE_INFOBAR_DELEGATE_H_
+#define CHROME_BROWSER_ANDROID_SEARCH_GEOLOCATION_DISCLOSURE_INFOBAR_DELEGATE_H_
+
+#include <stddef.h>
+
+#include <memory>
+#include <string>
+#include <utility>
+#include <vector>
+
+#include "base/logging.h"
+#include "base/macros.h"
+#include "base/memory/weak_ptr.h"
+#include "base/strings/string16.h"
+#include "build/build_config.h"
+#include "components/infobars/core/infobar_delegate.h"
+
+namespace content {
+class WebContents;
+}
+
+class SearchGeolocationDisclosureInfoBarDelegate
+ : public infobars::InfoBarDelegate {
+ public:
+ ~SearchGeolocationDisclosureInfoBarDelegate() override;
+
+ base::string16 GetMessageText() const;
+
+ static void Create(content::WebContents* web_contents);
gone 2016/11/04 23:21:48 newline here
benwells 2016/11/07 08:36:06 Done.
+ protected:
+ SearchGeolocationDisclosureInfoBarDelegate();
+
+ private:
+ // InfoBarDelegate:
+ Type GetInfoBarType() const override;
+ infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override;
+ int GetIconId() const override;
+ SearchGeolocationDisclosureInfoBarDelegate*
+ AsSearchGeolocationDisclosureInfoBarDelegate() override;
+
+ DISALLOW_COPY_AND_ASSIGN(SearchGeolocationDisclosureInfoBarDelegate);
+};
+
+#endif // CHROME_BROWSER_ANDROID_SEARCH_GEOLOCATION_DISCLOSURE_INFOBAR_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698