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

Unified Diff: components/content_settings/core/browser/content_settings_pref_provider.h

Issue 2816723002: Add "Site Settings" option to Clear Browsing Data on Android (Closed)
Patch Set: fix deps Created 3 years, 7 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: components/content_settings/core/browser/content_settings_pref_provider.h
diff --git a/components/content_settings/core/browser/content_settings_pref_provider.h b/components/content_settings/core/browser/content_settings_pref_provider.h
index e8520260a1d9ef01e26fb6daf67c3c04d9c58371..124ac9b840f5a02ada9922bda0f5643b468378eb 100644
--- a/components/content_settings/core/browser/content_settings_pref_provider.h
+++ b/components/content_settings/core/browser/content_settings_pref_provider.h
@@ -18,6 +18,10 @@
class PrefService;
+namespace base {
+class Clock;
+}
+
namespace user_prefs {
class PrefRegistrySyncable;
}
@@ -62,6 +66,8 @@ class PrefProvider : public ObservableProvider {
ContentSettingsPref* GetPref(ContentSettingsType type) const;
+ void SetClockForTesting(std::unique_ptr<base::Clock> clock);
+
private:
friend class DeadlockCheckerObserver; // For testing.
@@ -78,6 +84,8 @@ class PrefProvider : public ObservableProvider {
const bool is_incognito_;
+ bool store_last_modified_;
+
PrefChangeRegistrar pref_change_registrar_;
std::map<ContentSettingsType, std::unique_ptr<ContentSettingsPref>>
@@ -85,6 +93,8 @@ class PrefProvider : public ObservableProvider {
base::ThreadChecker thread_checker_;
+ std::unique_ptr<base::Clock> clock_;
+
DISALLOW_COPY_AND_ASSIGN(PrefProvider);
};

Powered by Google App Engine
This is Rietveld 408576698