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

Side by Side Diff: chrome/browser/extensions/api/braille_display_private/brlapi_connection.cc

Issue 1837483003: Move base::FreeDeleter into its own header. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/browser/extensions/api/braille_display_private/brlapi_connectio n.h" 5 #include "chrome/browser/extensions/api/braille_display_private/brlapi_connectio n.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/free_deleter.h"
10 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/message_loop.h"
11 #include "base/sys_info.h" 12 #include "base/sys_info.h"
12 #include "build/build_config.h" 13 #include "build/build_config.h"
13 14
14 namespace extensions { 15 namespace extensions {
15 using base::MessageLoopForIO; 16 using base::MessageLoopForIO;
16 namespace api { 17 namespace api {
17 namespace braille_display_private { 18 namespace braille_display_private {
18 19
19 namespace { 20 namespace {
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 if (error->brlerrno == BRLAPI_ERROR_LIBCERR 210 if (error->brlerrno == BRLAPI_ERROR_LIBCERR
210 && error->libcerrno == ENOENT) { 211 && error->libcerrno == ENOENT) {
211 return CONNECT_ERROR_NO_RETRY; 212 return CONNECT_ERROR_NO_RETRY;
212 } 213 }
213 return CONNECT_ERROR_RETRY; 214 return CONNECT_ERROR_RETRY;
214 } 215 }
215 216
216 } // namespace braille_display_private 217 } // namespace braille_display_private
217 } // namespace api 218 } // namespace api
218 } // namespace extensions 219 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698