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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_ANDROID_SEARCH_GEOLOCATION_DISCLOSURE_INFOBAR_DELEGATE_H_
6 #define CHROME_BROWSER_ANDROID_SEARCH_GEOLOCATION_DISCLOSURE_INFOBAR_DELEGATE_H_
7
8 #include <stddef.h>
9
10 #include <memory>
11 #include <string>
12 #include <utility>
13 #include <vector>
14
15 #include "base/logging.h"
16 #include "base/macros.h"
17 #include "base/memory/weak_ptr.h"
18 #include "base/strings/string16.h"
19 #include "build/build_config.h"
20 #include "components/infobars/core/infobar_delegate.h"
21
22 namespace content {
23 class WebContents;
24 }
25
26 class SearchGeolocationDisclosureInfoBarDelegate
27 : public infobars::InfoBarDelegate {
28 public:
29 ~SearchGeolocationDisclosureInfoBarDelegate() override;
30
31 base::string16 GetMessageText() const;
32
33 static void Create(content::WebContents* web_contents);
gone 2016/11/04 23:21:48 newline here
benwells 2016/11/07 08:36:06 Done.
34 protected:
35 SearchGeolocationDisclosureInfoBarDelegate();
36
37 private:
38 // InfoBarDelegate:
39 Type GetInfoBarType() const override;
40 infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override;
41 int GetIconId() const override;
42 SearchGeolocationDisclosureInfoBarDelegate*
43 AsSearchGeolocationDisclosureInfoBarDelegate() override;
44
45 DISALLOW_COPY_AND_ASSIGN(SearchGeolocationDisclosureInfoBarDelegate);
46 };
47
48 #endif // CHROME_BROWSER_ANDROID_SEARCH_GEOLOCATION_DISCLOSURE_INFOBAR_DELEGATE _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698