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

Side by Side Diff: components/filesystem/file_system_app.cc

Issue 2804373002: Eliminate Connector::Connect(), Connection, etc. (Closed)
Patch Set: . Created 3 years, 8 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/filesystem/file_system_app.h" 5 #include "components/filesystem/file_system_app.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/files/file_util.h" 11 #include "base/files/file_util.h"
12 #include "base/memory/ptr_util.h" 12 #include "base/memory/ptr_util.h"
13 #include "mojo/public/cpp/bindings/strong_binding.h" 13 #include "mojo/public/cpp/bindings/strong_binding.h"
14 #include "services/service_manager/public/cpp/connection.h"
15 #include "services/service_manager/public/cpp/connector.h" 14 #include "services/service_manager/public/cpp/connector.h"
16 #include "services/service_manager/public/cpp/interface_registry.h" 15 #include "services/service_manager/public/cpp/interface_registry.h"
17 #include "services/service_manager/public/cpp/service_context.h" 16 #include "services/service_manager/public/cpp/service_context.h"
18 17
19 #if defined(OS_WIN) 18 #if defined(OS_WIN)
20 #include "base/base_paths_win.h" 19 #include "base/base_paths_win.h"
21 #include "base/path_service.h" 20 #include "base/path_service.h"
22 #include "base/strings/utf_string_conversions.h" 21 #include "base/strings/utf_string_conversions.h"
23 #elif defined(OS_ANDROID) 22 #elif defined(OS_ANDROID)
24 #include "base/base_paths_android.h" 23 #include "base/base_paths_android.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 path = path.Append(FILE_PATH_LITERAL("filesystem")); 89 path = path.Append(FILE_PATH_LITERAL("filesystem"));
91 } 90 }
92 91
93 if (!base::PathExists(path)) 92 if (!base::PathExists(path))
94 base::CreateDirectory(path); 93 base::CreateDirectory(path);
95 94
96 return path; 95 return path;
97 } 96 }
98 97
99 } // namespace filesystem 98 } // namespace filesystem
OLDNEW
« no previous file with comments | « chrome/test/base/mash_browser_tests_main.cc ('k') | components/font_service/font_service_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698