| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "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/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 #if defined(OS_WIN) | 15 #if defined(OS_WIN) |
| 16 #include "chrome/browser/views/clear_browsing_data_view.h" | 16 #include "chrome/browser/views/clear_browsing_data_view.h" |
| 17 #endif | 17 #endif |
| 18 #include "chrome/common/pref_names.h" | 18 #include "chrome/common/pref_names.h" |
| 19 #include "gfx/insets.h" | 19 #include "gfx/insets.h" |
| 20 #include "grit/generated_resources.h" | 20 #include "grit/generated_resources.h" |
| 21 #include "grit/locale_settings.h" | 21 #include "grit/locale_settings.h" |
| 22 #include "net/url_request/url_request_context.h" | 22 #include "net/url_request/url_request_context.h" |
| (...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 459 remover_->AddObserver(this); | 459 remover_->AddObserver(this); |
| 460 remover_->Remove(remove_mask); | 460 remover_->Remove(remove_mask); |
| 461 } | 461 } |
| 462 | 462 |
| 463 void ClearBrowsingDataView::OnBrowsingDataRemoverDone() { | 463 void ClearBrowsingDataView::OnBrowsingDataRemoverDone() { |
| 464 // No need to remove ourselves as an observer as BrowsingDataRemover deletes | 464 // No need to remove ourselves as an observer as BrowsingDataRemover deletes |
| 465 // itself after we return. | 465 // itself after we return. |
| 466 remover_ = NULL; | 466 remover_ = NULL; |
| 467 window()->Close(); | 467 window()->Close(); |
| 468 } | 468 } |
| OLD | NEW |