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 <string> | 7 #include <string> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/format_macros.h" | 10 #include "base/format_macros.h" |
11 #include "base/json/json_string_value_serializer.h" | 11 #include "base/json/json_string_value_serializer.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/memory/singleton.h" | 13 #include "base/memory/singleton.h" |
14 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
15 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
16 #include "base/strings/stringprintf.h" | 16 #include "base/strings/stringprintf.h" |
17 #include "chrome/browser/extensions/activity_log/activity_action_constants.h" | 17 #include "chrome/browser/extensions/activity_log/activity_action_constants.h" |
18 #include "chrome/browser/extensions/activity_log/fullstream_ui_policy.h" | 18 #include "chrome/browser/extensions/activity_log/fullstream_ui_policy.h" |
19 #include "chrome/browser/ui/browser.h" | 19 #include "chrome/browser/ui/browser.h" |
20 #include "chrome/common/chrome_switches.h" | 20 #include "chrome/common/chrome_switches.h" |
21 #include "chrome/common/extensions/dom_action_types.h" | 21 #include "chrome/common/extensions/dom_action_types.h" |
22 #include "content/public/browser/browser_thread.h" | |
23 #include "content/public/browser/web_contents.h" | 22 #include "content/public/browser/web_contents.h" |
24 #include "sql/statement.h" | 23 #include "sql/statement.h" |
25 | 24 |
26 namespace constants = activity_log_constants; | 25 namespace constants = activity_log_constants; |
27 | 26 |
28 namespace { | 27 namespace { |
29 | 28 |
30 std::string Serialize(const base::Value* value) { | 29 std::string Serialize(const base::Value* value) { |
31 std::string value_as_text; | 30 std::string value_as_text; |
32 if (!value) { | 31 if (!value) { |
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 std::string rhs_other = ActivityLogPolicy::Util::Serialize(rhs->other()); | 352 std::string rhs_other = ActivityLogPolicy::Util::Serialize(rhs->other()); |
354 if (lhs_other != rhs_other) | 353 if (lhs_other != rhs_other) |
355 return lhs_other < rhs_other; | 354 return lhs_other < rhs_other; |
356 } | 355 } |
357 | 356 |
358 // All fields compare as equal if this point is reached. | 357 // All fields compare as equal if this point is reached. |
359 return false; | 358 return false; |
360 } | 359 } |
361 | 360 |
362 } // namespace extensions | 361 } // namespace extensions |
OLD | NEW |