seccomp-bpf: Remove legacy SandboxBPFPolicy class
[chromium-blink-merge.git] / chrome / browser / sync / backend_unrecoverable_error_handler.cc
blob1eeaec65985b83934260260839c2bedfd30aaddf
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "base/callback.h"
7 #include "chrome/browser/sync/backend_unrecoverable_error_handler.h"
8 #include "chrome/browser/sync/profile_sync_service.h"
9 #include "content/public/browser/browser_thread.h"
11 using content::BrowserThread;
13 namespace browser_sync {
15 BackendUnrecoverableErrorHandler::BackendUnrecoverableErrorHandler(
16 const syncer::WeakHandle<ProfileSyncService>& service) : service_(service) {
19 BackendUnrecoverableErrorHandler::~BackendUnrecoverableErrorHandler() {
22 void BackendUnrecoverableErrorHandler::OnUnrecoverableError(
23 const tracked_objects::Location& from_here,
24 const std::string& message) {
25 service_.Call(FROM_HERE,
26 &ProfileSyncService::OnUnrecoverableError,
27 from_here,
28 message);
31 } // namespace browser_sync