| 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/dom_ui/clear_browser_data_handler.h" | 5 #include "chrome/browser/dom_ui/clear_browser_data_handler.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/string16.h" | 9 #include "base/string16.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| 11 #include "chrome/browser/pref_service.h" | 11 #include "chrome/browser/prefs/pref_service.h" |
| 12 #include "chrome/browser/profile.h" | 12 #include "chrome/browser/profile.h" |
| 13 #include "chrome/common/pref_names.h" | 13 #include "chrome/common/pref_names.h" |
| 14 #include "grit/chromium_strings.h" | 14 #include "grit/chromium_strings.h" |
| 15 #include "grit/generated_resources.h" | 15 #include "grit/generated_resources.h" |
| 16 #include "grit/locale_settings.h" | 16 #include "grit/locale_settings.h" |
| 17 | 17 |
| 18 ClearBrowserDataHandler::ClearBrowserDataHandler() : remover_(NULL) { | 18 ClearBrowserDataHandler::ClearBrowserDataHandler() : remover_(NULL) { |
| 19 } | 19 } |
| 20 | 20 |
| 21 ClearBrowserDataHandler::~ClearBrowserDataHandler() { | 21 ClearBrowserDataHandler::~ClearBrowserDataHandler() { |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 } | 122 } |
| 123 | 123 |
| 124 void ClearBrowserDataHandler::OnBrowsingDataRemoverDone() { | 124 void ClearBrowserDataHandler::OnBrowsingDataRemoverDone() { |
| 125 // No need to remove ourselves as an observer as BrowsingDataRemover deletes | 125 // No need to remove ourselves as an observer as BrowsingDataRemover deletes |
| 126 // itself after we return. | 126 // itself after we return. |
| 127 remover_ = NULL; | 127 remover_ = NULL; |
| 128 DCHECK(dom_ui_); | 128 DCHECK(dom_ui_); |
| 129 dom_ui_->CallJavascriptFunction(L"ClearBrowserDataOverlay.dismiss"); | 129 dom_ui_->CallJavascriptFunction(L"ClearBrowserDataOverlay.dismiss"); |
| 130 } | 130 } |
| 131 | 131 |
| OLD | NEW |