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

Side by Side Diff: services/service_manager/embedder/shared_file_util.cc

Issue 2613653003: Move some basic early process init into Service Manager (Closed)
Patch Set: fix mac shutdown order Created 3 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 "services/service_manager/public/cpp/shared_file_util.h" 5 #include "services/service_manager/embedder/shared_file_util.h"
6 6
7 #include "base/strings/string_number_conversions.h" 7 #include "base/strings/string_number_conversions.h"
8 #include "base/strings/string_split.h" 8 #include "base/strings/string_split.h"
9 9
10 namespace service_manager { 10 namespace service_manager {
11 11
12 void SharedFileSwitchValueBuilder::AddEntry(const std::string& key_str, 12 void SharedFileSwitchValueBuilder::AddEntry(const std::string& key_str,
13 int key_id) { 13 int key_id) {
14 if (!switch_value_.empty()) { 14 if (!switch_value_.empty()) {
15 switch_value_ += ","; 15 switch_value_ += ",";
(...skipping 24 matching lines...) Expand all
40 << number_string << " (not an int)."; 40 << number_string << " (not an int).";
41 return base::nullopt; 41 return base::nullopt;
42 } 42 }
43 43
44 values[key_int] = key; 44 values[key_int] = key;
45 } 45 }
46 return base::make_optional(std::move(values)); 46 return base::make_optional(std::move(values));
47 } 47 }
48 48
49 } // namespace service_manager 49 } // namespace service_manager
OLDNEW
« no previous file with comments | « services/service_manager/embedder/shared_file_util.h ('k') | services/service_manager/embedder/switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698