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

Unified Diff: components/sync_driver/glue/chrome_report_unrecoverable_error.cc

Issue 2203673002: [Sync] Move //components/sync_driver to //components/sync/driver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sd-a
Patch Set: Full change rebased on static lib. Created 4 years, 4 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: components/sync_driver/glue/chrome_report_unrecoverable_error.cc
diff --git a/components/sync_driver/glue/chrome_report_unrecoverable_error.cc b/components/sync_driver/glue/chrome_report_unrecoverable_error.cc
deleted file mode 100644
index c824bd56fd39f458e2e8955157c9d71bc36badd2..0000000000000000000000000000000000000000
--- a/components/sync_driver/glue/chrome_report_unrecoverable_error.cc
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright (c) 2012 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 "components/sync_driver/glue/chrome_report_unrecoverable_error.h"
-
-#include "base/debug/dump_without_crashing.h"
-#include "base/rand_util.h"
-
-namespace browser_sync {
-
-void ChromeReportUnrecoverableError(version_info::Channel channel) {
- // Only upload on canary/dev builds to avoid overwhelming crash server.
- if (channel != version_info::Channel::CANARY &&
- channel != version_info::Channel::DEV) {
- return;
- }
-
- // We only want to upload |kErrorUploadRatio| ratio of errors.
- const double kErrorUploadRatio = 0.01;
- if (kErrorUploadRatio <= 0.0)
- return; // We are not allowed to upload errors.
- double random_number = base::RandDouble();
- if (random_number > kErrorUploadRatio)
- return;
-
- base::debug::DumpWithoutCrashing();
-}
-
-} // namespace browser_sync
« no previous file with comments | « components/sync_driver/glue/chrome_report_unrecoverable_error.h ('k') | components/sync_driver/glue/sync_backend_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698