Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4655)

Unified Diff: chrome/browser/safe_browsing/incident_reporting/omnibox_interaction_incident.cc

Issue 872433003: Remove omnibox watcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/safe_browsing/incident_reporting/omnibox_interaction_incident.cc
diff --git a/chrome/browser/safe_browsing/incident_reporting/omnibox_interaction_incident.cc b/chrome/browser/safe_browsing/incident_reporting/omnibox_interaction_incident.cc
deleted file mode 100644
index 63fe993422bba2e692b1db06d706ef54066803a8..0000000000000000000000000000000000000000
--- a/chrome/browser/safe_browsing/incident_reporting/omnibox_interaction_incident.cc
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/safe_browsing/incident_reporting/omnibox_interaction_incident.h"
-
-#include "base/logging.h"
-#include "chrome/common/safe_browsing/csd.pb.h"
-
-namespace safe_browsing {
-
-OmniboxInteractionIncident::OmniboxInteractionIncident(
- scoped_ptr<ClientIncidentReport_IncidentData_OmniboxInteractionIncident>
- omnibox_interaction_incident) {
- DCHECK(omnibox_interaction_incident);
- DCHECK(omnibox_interaction_incident->has_origin());
- payload()->set_allocated_omnibox_interaction(
- omnibox_interaction_incident.release());
-}
-
-OmniboxInteractionIncident::~OmniboxInteractionIncident() {
-}
-
-IncidentType OmniboxInteractionIncident::GetType() const {
- return IncidentType::OMNIBOX_INTERACTION;
-}
-
-std::string OmniboxInteractionIncident::GetKey() const {
- // Return a constant, as only one kind of suspicious interaction is detected.
- return "1";
-}
-
-uint32_t OmniboxInteractionIncident::ComputeDigest() const {
- // Return a constant (independent of the incident's payload) so that only the
- // first suspicious interaction is reported.
- return 1u;
-}
-
-} // namespace safe_browsing

Powered by Google App Engine
This is Rietveld 408576698