Chromium Code Reviews| Index: chrome/browser/browser_process_platform_part_chromeos.cc |
| diff --git a/chrome/browser/browser_process_platform_part_chromeos.cc b/chrome/browser/browser_process_platform_part_chromeos.cc |
| index 4b63b33c1daa1e26f6c42546c58b4710352232d9..39986f9c5516f70870919b52545262dee2bd381e 100644 |
| --- a/chrome/browser/browser_process_platform_part_chromeos.cc |
| +++ b/chrome/browser/browser_process_platform_part_chromeos.cc |
| @@ -154,6 +154,26 @@ void BrowserProcessPlatformPart::DestroySystemClock() { |
| system_clock_.reset(); |
| } |
| +void BrowserProcessPlatformPart::AddCompatibleCrOSComponent( |
| + const std::string& name) { |
| + auto it = std::find(compatible_cros_components_.begin(), |
| + compatible_cros_components_.end(), name); |
| + if (it == compatible_cros_components_.end()) { |
| + compatible_cros_components_.push_back(name); |
| + } |
| +} |
| + |
| +bool BrowserProcessPlatformPart::IsCompatibleCrOSComponent( |
| + const std::string& name) { |
| + auto it = std::find(compatible_cros_components_.begin(), |
| + compatible_cros_components_.end(), name); |
| + if (it == compatible_cros_components_.end()) { |
| + return false; |
| + } else { |
| + return true; |
| + } |
|
waffles
2017/05/24 21:14:35
Just "return it != compatible_cros_components_.end
xiaochu
2017/05/24 21:35:37
Done.
|
| +} |
| + |
| void BrowserProcessPlatformPart::CreateProfileHelper() { |
| DCHECK(!created_profile_helper_ && !profile_helper_); |
| created_profile_helper_ = true; |