| OLD | NEW |
| 1 // Copyright (c) 2011 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/extensions/activity_log/activity_log.h" | 5 #include "chrome/browser/extensions/activity_log/activity_log.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "chrome/browser/extensions/extension_system_factory.h" | 22 #include "chrome/browser/extensions/extension_system_factory.h" |
| 23 #include "chrome/browser/extensions/extension_tab_util.h" | 23 #include "chrome/browser/extensions/extension_tab_util.h" |
| 24 #include "chrome/browser/extensions/install_tracker_factory.h" | 24 #include "chrome/browser/extensions/install_tracker_factory.h" |
| 25 #include "chrome/browser/prefs/pref_service_syncable.h" | 25 #include "chrome/browser/prefs/pref_service_syncable.h" |
| 26 #include "chrome/browser/prerender/prerender_manager.h" | 26 #include "chrome/browser/prerender/prerender_manager.h" |
| 27 #include "chrome/browser/prerender/prerender_manager_factory.h" | 27 #include "chrome/browser/prerender/prerender_manager_factory.h" |
| 28 #include "chrome/browser/profiles/incognito_helpers.h" | 28 #include "chrome/browser/profiles/incognito_helpers.h" |
| 29 #include "chrome/browser/ui/browser.h" | 29 #include "chrome/browser/ui/browser.h" |
| 30 #include "chrome/common/chrome_constants.h" | 30 #include "chrome/common/chrome_constants.h" |
| 31 #include "chrome/common/chrome_switches.h" | 31 #include "chrome/common/chrome_switches.h" |
| 32 #include "chrome/common/extensions/extension.h" | |
| 33 #include "chrome/common/pref_names.h" | 32 #include "chrome/common/pref_names.h" |
| 34 #include "components/browser_context_keyed_service/browser_context_dependency_ma
nager.h" | 33 #include "components/browser_context_keyed_service/browser_context_dependency_ma
nager.h" |
| 35 #include "content/public/browser/web_contents.h" | 34 #include "content/public/browser/web_contents.h" |
| 35 #include "extensions/common/extension.h" |
| 36 #include "third_party/re2/re2/re2.h" | 36 #include "third_party/re2/re2/re2.h" |
| 37 #include "url/gurl.h" | 37 #include "url/gurl.h" |
| 38 | 38 |
| 39 #if !defined(OS_ANDROID) | 39 #if !defined(OS_ANDROID) |
| 40 #include "chrome/browser/extensions/activity_log/uma_policy.h" | 40 #include "chrome/browser/extensions/activity_log/uma_policy.h" |
| 41 #endif | 41 #endif |
| 42 | 42 |
| 43 namespace constants = activity_log_constants; | 43 namespace constants = activity_log_constants; |
| 44 | 44 |
| 45 namespace { | 45 namespace { |
| (...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 651 RemoveURLs(urls); | 651 RemoveURLs(urls); |
| 652 } | 652 } |
| 653 | 653 |
| 654 void ActivityLog::DeleteDatabase() { | 654 void ActivityLog::DeleteDatabase() { |
| 655 if (!database_policy_) | 655 if (!database_policy_) |
| 656 return; | 656 return; |
| 657 database_policy_->DeleteDatabase(); | 657 database_policy_->DeleteDatabase(); |
| 658 } | 658 } |
| 659 | 659 |
| 660 } // namespace extensions | 660 } // namespace extensions |
| OLD | NEW |