| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ui/webui/options/clear_browser_data_handler.h" | 5 #include "chrome/browser/ui/webui/options/clear_browser_data_handler.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/bind_helpers.h" | 9 #include "base/bind_helpers.h" |
| 10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
| 11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
| 12 #include "base/values.h" | 12 #include "base/values.h" |
| 13 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
| 14 #include "chrome/browser/browsing_data/browsing_data_helper.h" | 14 #include "chrome/browser/browsing_data/browsing_data_helper.h" |
| 15 #include "chrome/browser/browsing_data/browsing_data_remover.h" | 15 #include "chrome/browser/browsing_data/browsing_data_remover.h" |
| 16 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
| 17 #include "chrome/common/pref_names.h" | 17 #include "chrome/common/pref_names.h" |
| 18 #include "chrome/grit/generated_resources.h" |
| 18 #include "components/google/core/browser/google_util.h" | 19 #include "components/google/core/browser/google_util.h" |
| 19 #include "content/public/browser/notification_details.h" | 20 #include "content/public/browser/notification_details.h" |
| 20 #include "content/public/browser/web_ui.h" | 21 #include "content/public/browser/web_ui.h" |
| 21 #include "grit/generated_resources.h" | |
| 22 #include "grit/locale_settings.h" | 22 #include "grit/locale_settings.h" |
| 23 #include "ui/base/accelerators/accelerator.h" | 23 #include "ui/base/accelerators/accelerator.h" |
| 24 #include "ui/base/l10n/l10n_util.h" | 24 #include "ui/base/l10n/l10n_util.h" |
| 25 | 25 |
| 26 namespace { | 26 namespace { |
| 27 const char kClearBrowsingDataLearnMoreUrl[] = | 27 const char kClearBrowsingDataLearnMoreUrl[] = |
| 28 "https://support.google.com/chrome/?p=settings_clear_browsing_data"; | 28 "https://support.google.com/chrome/?p=settings_clear_browsing_data"; |
| 29 } | 29 } |
| 30 | 30 |
| 31 namespace options { | 31 namespace options { |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 web_ui()->CallJavascriptFunction("ClearBrowserDataOverlay.doneClearing"); | 213 web_ui()->CallJavascriptFunction("ClearBrowserDataOverlay.doneClearing"); |
| 214 } | 214 } |
| 215 | 215 |
| 216 void ClearBrowserDataHandler::OnBrowsingHistoryPrefChanged() { | 216 void ClearBrowserDataHandler::OnBrowsingHistoryPrefChanged() { |
| 217 web_ui()->CallJavascriptFunction( | 217 web_ui()->CallJavascriptFunction( |
| 218 "ClearBrowserDataOverlay.setAllowDeletingHistory", | 218 "ClearBrowserDataOverlay.setAllowDeletingHistory", |
| 219 base::FundamentalValue(*allow_deleting_browser_history_)); | 219 base::FundamentalValue(*allow_deleting_browser_history_)); |
| 220 } | 220 } |
| 221 | 221 |
| 222 } // namespace options | 222 } // namespace options |
| OLD | NEW |