OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/views/clear_browsing_data.h" | 5 #include "chrome/browser/views/clear_browsing_data.h" |
6 | 6 |
7 #include "chrome/app/locales/locale_settings.h" | 7 #include "chrome/app/locales/locale_settings.h" |
8 #include "chrome/browser/profile.h" | 8 #include "chrome/browser/profile.h" |
9 #include "chrome/browser/template_url_model.h" | 9 #include "chrome/browser/template_url_model.h" |
10 #include "chrome/browser/views/standard_layout.h" | 10 #include "chrome/browser/views/standard_layout.h" |
11 #include "chrome/common/l10n_util.h" | 11 #include "chrome/common/l10n_util.h" |
12 #include "chrome/views/background.h" | 12 #include "chrome/views/background.h" |
13 #include "chrome/views/checkbox.h" | 13 #include "chrome/views/checkbox.h" |
14 #include "chrome/views/label.h" | 14 #include "chrome/views/label.h" |
15 #include "chrome/views/native_button.h" | 15 #include "chrome/views/native_button.h" |
16 #include "chrome/views/throbber.h" | 16 #include "chrome/views/throbber.h" |
17 #include "chrome/views/window.h" | 17 #include "chrome/views/window.h" |
18 #include "chrome/common/pref_names.h" | 18 #include "chrome/common/pref_names.h" |
19 #include "chrome/common/pref_service.h" | 19 #include "chrome/common/pref_service.h" |
20 #include "net/url_request/url_request_context.h" | 20 #include "net/url_request/url_request_context.h" |
21 | 21 |
22 #include "generated_resources.h" | 22 #include "generated_resources.h" |
23 | 23 |
| 24 using base::Time; |
| 25 using base::TimeDelta; |
| 26 |
24 // The combo box is vertically aligned to the 'time-period' label, which makes | 27 // The combo box is vertically aligned to the 'time-period' label, which makes |
25 // the combo box look a little too close to the check box above it when we use | 28 // the combo box look a little too close to the check box above it when we use |
26 // standard layout to separate them. We therefore add a little extra margin to | 29 // standard layout to separate them. We therefore add a little extra margin to |
27 // the label, giving it a little breathing space. | 30 // the label, giving it a little breathing space. |
28 static const int kExtraMarginForTimePeriodLabel = 3; | 31 static const int kExtraMarginForTimePeriodLabel = 3; |
29 | 32 |
30 //////////////////////////////////////////////////////////////////////////////// | 33 //////////////////////////////////////////////////////////////////////////////// |
31 // ClearBrowsingDataView, public: | 34 // ClearBrowsingDataView, public: |
32 | 35 |
33 ClearBrowsingDataView::ClearBrowsingDataView(Profile* profile) | 36 ClearBrowsingDataView::ClearBrowsingDataView(Profile* profile) |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 remover_->AddObserver(this); | 404 remover_->AddObserver(this); |
402 remover_->Remove(remove_mask); | 405 remover_->Remove(remove_mask); |
403 } | 406 } |
404 | 407 |
405 void ClearBrowsingDataView::OnBrowsingDataRemoverDone() { | 408 void ClearBrowsingDataView::OnBrowsingDataRemoverDone() { |
406 // No need to remove ourselves as an observer as BrowsingDataRemover deletes | 409 // No need to remove ourselves as an observer as BrowsingDataRemover deletes |
407 // itself after we return. | 410 // itself after we return. |
408 remover_ = NULL; | 411 remover_ = NULL; |
409 window()->Close(); | 412 window()->Close(); |
410 } | 413 } |
411 | |
OLD | NEW |