Chromium Code Reviews| 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..73ab9e7a40512ccd81850250abc78481c6765295 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 warning received. |
|
stanisc
2015/05/15 23:11:04
warning -> warnings.
Gang Wu
2015/05/15 23:21:41
Done.
|
| + int GetMemoryPressureWarningCount() const; |
| + void SetMemoryPressureWarningCount(int value); |
| + |
| + // Check if previous shutdown cleanly. |
|
stanisc
2015/05/15 23:11:04
Check if the previous shutdown was clean.
Gang Wu
2015/05/15 23:21:41
Done.
|
| + bool DidSyncShutdownCleanly() const; |
| + |
| + // Set the sync service shutdown cleanly. |
|
stanisc
2015/05/15 23:11:04
Set whether the last shutdown was clean.
Gang Wu
2015/05/15 23:21:41
Done.
|
| + void SetCleanShutdown(bool value); |
| + |
| private: |
| void RegisterPrefGroups(); |