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

Unified Diff: chrome/browser/android/search_geolocation/search_geolocation_service.h

Issue 2633103002: Add a unittest for SearchGeolocationService (Closed)
Patch Set: Add a unittest for SearchGeolocationService Created 3 years, 11 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/android/search_geolocation/search_geolocation_service.h
diff --git a/chrome/browser/android/search_geolocation/search_geolocation_service.h b/chrome/browser/android/search_geolocation/search_geolocation_service.h
index 93ba3e9d8263d49f7830f9078d38d2f07b53b344..351aac751c4750fc7883d03afd0aaf88e42b7765 100644
--- a/chrome/browser/android/search_geolocation/search_geolocation_service.h
+++ b/chrome/browser/android/search_geolocation/search_geolocation_service.h
@@ -66,10 +66,10 @@ class SearchGeolocationService : public KeyedService {
bool ServiceIsCreatedWithBrowserContext() const override;
KeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const override;
+ void RegisterProfilePrefs(
+ user_prefs::PrefRegistrySyncable* registry) override;
};
- static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
-
explicit SearchGeolocationService(Profile* profile);
// Returns whether the DSE geolocation setting is applicable for geolocation
@@ -87,6 +87,7 @@ class SearchGeolocationService : public KeyedService {
void Shutdown() override;
private:
+ friend class SearchGeolocationServiceTest;
struct PrefValue;
~SearchGeolocationService() override;

Powered by Google App Engine
This is Rietveld 408576698