OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_view.h" | 5 #include "chrome/browser/ui/views/clear_browsing_data_view.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "base/string16.h" | 8 #include "base/string16.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "chrome/browser/browser_window.h" | 10 #include "chrome/browser/browser_window.h" |
11 #include "chrome/browser/prefs/pref_service.h" | 11 #include "chrome/browser/prefs/pref_service.h" |
12 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
13 #include "chrome/browser/search_engines/template_url_model.h" | 13 #include "chrome/browser/search_engines/template_url_model.h" |
14 #include "chrome/browser/ui/browser.h" | 14 #include "chrome/browser/ui/browser.h" |
15 #include "chrome/common/pref_names.h" | 15 #include "chrome/common/pref_names.h" |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 remover_ = new BrowsingDataRemover(profile_, | 363 remover_ = new BrowsingDataRemover(profile_, |
364 static_cast<BrowsingDataRemover::TimePeriod>(period_selected), | 364 static_cast<BrowsingDataRemover::TimePeriod>(period_selected), |
365 base::Time()); | 365 base::Time()); |
366 remover_->AddObserver(this); | 366 remover_->AddObserver(this); |
367 remover_->Remove(remove_mask); | 367 remover_->Remove(remove_mask); |
368 } | 368 } |
369 | 369 |
370 void ClearBrowsingDataView2::OnBrowsingDataRemoverDone() { | 370 void ClearBrowsingDataView2::OnBrowsingDataRemoverDone() { |
371 clear_data_parent_window_->StopClearingBrowsingData(); | 371 clear_data_parent_window_->StopClearingBrowsingData(); |
372 } | 372 } |
OLD | NEW |