From d575770adfc5473264389b6d5487a13f08ccc3ee Mon Sep 17 00:00:00 2001 From: "raz@chromium.org" Date: Mon, 11 Oct 2010 15:48:01 +0000 Subject: Fixed 58452 + disabled clear server button, don't hide the UI BUG=58452 TEST=repro steps in 58452, and in UI clear server data, note the button is greyed out not disabled Review URL: http://codereview.chromium.org/3626006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62147 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/views/clear_server_data.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'chrome/browser/views/clear_server_data.h') diff --git a/chrome/browser/views/clear_server_data.h b/chrome/browser/views/clear_server_data.h index e10d464..64254f3 100644 --- a/chrome/browser/views/clear_server_data.h +++ b/chrome/browser/views/clear_server_data.h @@ -81,6 +81,9 @@ class ClearServerDataView : public views::View, // have a delete operation in progress or not. void UpdateControlEnabledState(); + // Enables/disables the clear button as appropriate + void UpdateClearButtonEnabledState(bool delete_in_progress); + // Starts the process of deleting the browsing data depending on what the // user selected. void OnDelete(); @@ -94,6 +97,7 @@ class ClearServerDataView : public views::View, ClearDataView* clear_data_parent_window_; Profile* profile_; + ProfileSyncService* sync_service_; bool allow_clear_; views::Label* flash_title_label_; -- cgit v1.1