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

Side by Side Diff: chrome/browser/sync/backend_unrecoverable_error_handler.cc

Issue 1275743002: [Sync] Remove backend unrecoverable error handler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix leak Created 5 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 unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #include "base/callback.h"
6
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"
10
11 using content::BrowserThread;
12
13 namespace browser_sync {
14
15 BackendUnrecoverableErrorHandler::BackendUnrecoverableErrorHandler(
16 const syncer::WeakHandle<ProfileSyncService>& service) : service_(service) {
17 }
18
19 BackendUnrecoverableErrorHandler::~BackendUnrecoverableErrorHandler() {
20 }
21
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);
29 }
30
31 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/backend_unrecoverable_error_handler.h ('k') | chrome/browser/sync/glue/sync_backend_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698