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/google/google_util.h" | |
17 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
18 #include "chrome/common/pref_names.h" | 17 #include "chrome/common/pref_names.h" |
| 18 #include "components/google/core/browser/google_util.h" |
19 #include "content/public/browser/notification_details.h" | 19 #include "content/public/browser/notification_details.h" |
20 #include "content/public/browser/web_ui.h" | 20 #include "content/public/browser/web_ui.h" |
21 #include "grit/chromium_strings.h" | 21 #include "grit/chromium_strings.h" |
22 #include "grit/generated_resources.h" | 22 #include "grit/generated_resources.h" |
23 #include "grit/locale_settings.h" | 23 #include "grit/locale_settings.h" |
24 #include "ui/base/accelerators/accelerator.h" | 24 #include "ui/base/accelerators/accelerator.h" |
25 #include "ui/base/l10n/l10n_util.h" | 25 #include "ui/base/l10n/l10n_util.h" |
26 | 26 |
27 namespace { | 27 namespace { |
28 const char kClearBrowsingDataLearnMoreUrl[] = | 28 const char kClearBrowsingDataLearnMoreUrl[] = |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 web_ui()->CallJavascriptFunction("ClearBrowserDataOverlay.doneClearing"); | 214 web_ui()->CallJavascriptFunction("ClearBrowserDataOverlay.doneClearing"); |
215 } | 215 } |
216 | 216 |
217 void ClearBrowserDataHandler::OnBrowsingHistoryPrefChanged() { | 217 void ClearBrowserDataHandler::OnBrowsingHistoryPrefChanged() { |
218 web_ui()->CallJavascriptFunction( | 218 web_ui()->CallJavascriptFunction( |
219 "ClearBrowserDataOverlay.setAllowDeletingHistory", | 219 "ClearBrowserDataOverlay.setAllowDeletingHistory", |
220 base::FundamentalValue(*allow_deleting_browser_history_)); | 220 base::FundamentalValue(*allow_deleting_browser_history_)); |
221 } | 221 } |
222 | 222 |
223 } // namespace options | 223 } // namespace options |
OLD | NEW |