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

Unified Diff: components/sync_driver/sync_prefs.h

Issue 1136763004: Add UMA data for memory pressure warning received for sync (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « components/sync_driver/pref_names.cc ('k') | components/sync_driver/sync_prefs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync_driver/sync_prefs.h
diff --git a/components/sync_driver/sync_prefs.h b/components/sync_driver/sync_prefs.h
index 23109467a46dc4be4d3a20a9a7934279c50cab2e..043ed734307a71c30c862c340b6c426822bf1c16 100644
--- a/components/sync_driver/sync_prefs.h
+++ b/components/sync_driver/sync_prefs.h
@@ -140,6 +140,16 @@ class SyncPrefs : NON_EXPORTED_BASE(public base::NonThreadSafe),
// For testing.
void SetManagedForTest(bool is_managed);
+ // Get/Set number of memory warnings received.
+ int GetMemoryPressureWarningCount() const;
+ void SetMemoryPressureWarningCount(int value);
+
+ // Check if the previous shutdown was clean.
+ bool DidSyncShutdownCleanly() const;
+
+ // Set whetherthe last shutdown was clean.
+ void SetCleanShutdown(bool value);
+
private:
void RegisterPrefGroups();
« no previous file with comments | « components/sync_driver/pref_names.cc ('k') | components/sync_driver/sync_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698