OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/common/child_process_logging.h" | 5 #include "chrome/common/child_process_logging.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 void SetClientId(const std::string& client_id) { | 24 void SetClientId(const std::string& client_id) { |
25 std::string str(client_id); | 25 std::string str(client_id); |
26 ReplaceSubstringsAfterOffset(&str, 0, "-", ""); | 26 ReplaceSubstringsAfterOffset(&str, 0, "-", ""); |
27 | 27 |
28 if (str.empty()) | 28 if (str.empty()) |
29 return; | 29 return; |
30 | 30 |
31 std::wstring wstr = ASCIIToWide(str); | 31 std::wstring wstr = ASCIIToWide(str); |
32 GoogleUpdateSettings::SetMetricsId(wstr); | 32 GoogleUpdateSettings::SetMetricsId(wstr); |
33 } | 33 } |
| 34 |
| 35 void SetActiveExtensions(const std::vector<std::string> extension_ids) { |
| 36 // TODO(port) |
| 37 } |
34 } // namespace child_process_logging | 38 } // namespace child_process_logging |
OLD | NEW |