Chromium Code Reviews| Index: chrome/browser/ui/webui/options/clear_browser_data_handler.h |
| diff --git a/chrome/browser/ui/webui/options/clear_browser_data_handler.h b/chrome/browser/ui/webui/options/clear_browser_data_handler.h |
| index 7ffe94918f669dd62fe49ba008a5ffbddebb85d5..bb6f014d9b68c74cb89a9d7b7e01c068dee9a844 100644 |
| --- a/chrome/browser/ui/webui/options/clear_browser_data_handler.h |
| +++ b/chrome/browser/ui/webui/options/clear_browser_data_handler.h |
| @@ -9,13 +9,15 @@ |
| #include "base/prefs/pref_member.h" |
| #include "chrome/browser/browsing_data/browsing_data_counter.h" |
| #include "chrome/browser/browsing_data/browsing_data_remover.h" |
| +#include "chrome/browser/sync/profile_sync_service.h" |
| #include "chrome/browser/ui/webui/options/options_ui.h" |
| namespace options { |
| // Clear browser data handler page UI handler. |
| class ClearBrowserDataHandler : public OptionsPageUIHandler, |
| - public BrowsingDataRemover::Observer { |
| + public BrowsingDataRemover::Observer, |
| + public sync_driver::SyncServiceObserver { |
| public: |
| ClearBrowserDataHandler(); |
| ~ClearBrowserDataHandler() override; |
| @@ -54,6 +56,10 @@ class ClearBrowserDataHandler : public OptionsPageUIHandler, |
| bool finished, |
| uint32 count); |
| + // Called when the Sync service state changes. Updates the support string |
|
Bernhard Bauer
2015/09/26 06:46:07
Mention which interface this method implements? Th
msramek
2015/09/28 08:41:42
Done.
|
| + // at the bottom of the dialog. |
| + void OnStateChanged() override; |
| + |
| // If non-null it means removal is in progress. BrowsingDataRemover takes care |
| // of deleting itself when done. |
| BrowsingDataRemover* remover_; |
| @@ -71,6 +77,9 @@ class ClearBrowserDataHandler : public OptionsPageUIHandler, |
| // Counters that calculate the data volume for some of the data types. |
| ScopedVector<BrowsingDataCounter> counters_; |
| + // Informs us whether the user is syncing their data. |
| + ProfileSyncService* sync_service_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(ClearBrowserDataHandler); |
| }; |