| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_actions.h" | 5 #include "chrome/browser/extensions/activity_log/activity_actions.h" |
| 6 | 6 |
| 7 #include <algorithm> // for std::find. | 7 #include <algorithm> // for std::find. |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/format_macros.h" | 11 #include "base/format_macros.h" |
| 12 #include "base/json/json_string_value_serializer.h" | 12 #include "base/json/json_string_value_serializer.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/memory/singleton.h" | 15 #include "base/memory/singleton.h" |
| 16 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
| 17 #include "base/strings/string_util.h" | 17 #include "base/strings/string_util.h" |
| 18 #include "base/strings/stringprintf.h" | 18 #include "base/strings/stringprintf.h" |
| 19 #include "base/values.h" | 19 #include "base/values.h" |
| 20 #include "chrome/browser/extensions/activity_log/activity_action_constants.h" | 20 #include "chrome/browser/extensions/activity_log/activity_action_constants.h" |
| 21 #include "chrome/browser/extensions/activity_log/ad_network_database.h" | 21 #include "chrome/browser/extensions/activity_log/ad_network_database.h" |
| 22 #include "chrome/browser/extensions/activity_log/fullstream_ui_policy.h" | 22 #include "chrome/browser/extensions/activity_log/fullstream_ui_policy.h" |
| 23 #include "chrome/browser/ui/browser.h" | 23 #include "chrome/browser/ui/browser.h" |
| 24 #include "chrome/common/chrome_switches.h" | 24 #include "chrome/common/chrome_switches.h" |
| 25 #include "chrome/common/extensions/ad_injection_constants.h" | |
| 26 #include "chrome/common/extensions/dom_action_types.h" | |
| 27 #include "components/rappor/rappor_service.h" | 25 #include "components/rappor/rappor_service.h" |
| 28 #include "content/public/browser/web_contents.h" | 26 #include "content/public/browser/web_contents.h" |
| 27 #include "extensions/common/ad_injection_constants.h" |
| 28 #include "extensions/common/dom_action_types.h" |
| 29 #include "sql/statement.h" | 29 #include "sql/statement.h" |
| 30 #include "url/gurl.h" | 30 #include "url/gurl.h" |
| 31 | 31 |
| 32 namespace constants = activity_log_constants; | 32 namespace constants = activity_log_constants; |
| 33 | 33 |
| 34 namespace extensions { | 34 namespace extensions { |
| 35 | 35 |
| 36 namespace { | 36 namespace { |
| 37 | 37 |
| 38 namespace keys = ad_injection_constants::keys; | 38 namespace keys = ad_injection_constants::keys; |
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 std::string rhs_other = ActivityLogPolicy::Util::Serialize(rhs->other()); | 490 std::string rhs_other = ActivityLogPolicy::Util::Serialize(rhs->other()); |
| 491 if (lhs_other != rhs_other) | 491 if (lhs_other != rhs_other) |
| 492 return lhs_other < rhs_other; | 492 return lhs_other < rhs_other; |
| 493 } | 493 } |
| 494 | 494 |
| 495 // All fields compare as equal if this point is reached. | 495 // All fields compare as equal if this point is reached. |
| 496 return false; | 496 return false; |
| 497 } | 497 } |
| 498 | 498 |
| 499 } // namespace extensions | 499 } // namespace extensions |
| OLD | NEW |