OLD | NEW |
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 Loading... |
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 |
OLD | NEW |