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

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
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..b7266b47d5862f423cf5614cedeec9fb45fd077b 100644
--- a/components/sync_driver/sync_prefs.h
+++ b/components/sync_driver/sync_prefs.h
@@ -140,6 +140,11 @@ class SyncPrefs : NON_EXPORTED_BASE(public base::NonThreadSafe),
// For testing.
void SetManagedForTest(bool is_managed);
+ int GetMemoryPressure() const;
stanisc 2015/05/15 20:31:04 Need comments for all 4 functions
Gang Wu 2015/05/15 21:13:47 Done.
+ void SetMemoryPressure(int value);
+ bool IsPreviousCrashed() const;
stanisc 2015/05/15 20:31:04 These two function names are confusing. Basically
+ void SetCurrentShutdown(bool value);
+
private:
void RegisterPrefGroups();

Powered by Google App Engine
This is Rietveld 408576698