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

Side by Side Diff: components/sync/model/data_type_error_handler_impl.cc

Issue 2479093002: Migrate more files to histogram_macros.h from histogram.h. (Closed)
Patch Set: Created 4 years, 1 month 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "components/sync/model/data_type_error_handler_impl.h" 5 #include "components/sync/model/data_type_error_handler_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram_macros.h"
9 9
10 namespace syncer { 10 namespace syncer {
11 11
12 DataTypeErrorHandlerImpl::DataTypeErrorHandlerImpl( 12 DataTypeErrorHandlerImpl::DataTypeErrorHandlerImpl(
13 const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread, 13 const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread,
14 const base::Closure& dump_stack, 14 const base::Closure& dump_stack,
15 const ErrorCallback& sync_callback) 15 const ErrorCallback& sync_callback)
16 : ui_thread_(ui_thread), 16 : ui_thread_(ui_thread),
17 dump_stack_(dump_stack), 17 dump_stack_(dump_stack),
18 sync_callback_(sync_callback) {} 18 sync_callback_(sync_callback) {}
(...skipping 17 matching lines...) Expand all
36 dump_stack_.Run(); 36 dump_stack_.Run();
37 return SyncError(location, SyncError::DATATYPE_ERROR, message, type); 37 return SyncError(location, SyncError::DATATYPE_ERROR, message, type);
38 } 38 }
39 39
40 std::unique_ptr<DataTypeErrorHandler> DataTypeErrorHandlerImpl::Copy() const { 40 std::unique_ptr<DataTypeErrorHandler> DataTypeErrorHandlerImpl::Copy() const {
41 return base::MakeUnique<DataTypeErrorHandlerImpl>(ui_thread_, dump_stack_, 41 return base::MakeUnique<DataTypeErrorHandlerImpl>(ui_thread_, dump_stack_,
42 sync_callback_); 42 sync_callback_);
43 } 43 }
44 44
45 } // namespace syncer 45 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/engine_impl/model_type_worker.cc ('k') | device/geolocation/geolocation_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698