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

Side by Side Diff: chrome/browser/android/search_geolocation_disclosure_tab_helper.h

Issue 2475213002: Update the Google Search geolocation disclosure to make it more obvious. (Closed)
Patch Set: Feedback 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_TAB_HELPER_H_
6 #define CHROME_BROWSER_ANDROID_SEARCH_GEOLOCATION_DISCLOSURE_TAB_HELPER_H_
7
8 #include "base/macros.h"
9 #include "content/public/browser/web_contents_observer.h"
10 #include "content/public/browser/web_contents_user_data.h"
11 #include "url/gurl.h"
12
13 class Profile;
14
15 // Tab helper to show the search geolocation disclosure.
16 class SearchGeolocationDisclosureTabHelper
17 : public content::WebContentsObserver,
18 public content::WebContentsUserData<
19 SearchGeolocationDisclosureTabHelper> {
20 public:
21 ~SearchGeolocationDisclosureTabHelper() override;
22
23 // content::WebContentsObserver overrides.
24 void NavigationEntryCommitted(
25 const content::LoadCommittedDetails& load_details) override;
26
27 private:
28 explicit SearchGeolocationDisclosureTabHelper(content::WebContents* contents);
29 friend class content::WebContentsUserData<
30 SearchGeolocationDisclosureTabHelper>;
31
32 void MaybeShowDefaultSearchGeolocationDisclosure(GURL gurl);
33 Profile* GetProfile();
34
35 bool consistent_geolocation_enabled_;
36
37 DISALLOW_COPY_AND_ASSIGN(SearchGeolocationDisclosureTabHelper);
38 };
39
40 #endif // CHROME_BROWSER_ANDROID_SEARCH_GEOLOCATION_DISCLOSURE_TAB_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698