| Index: chrome/common/pepper_flash.cc
|
| diff --git a/chrome/common/pepper_flash.cc b/chrome/common/pepper_flash.cc
|
| index da1c00de65519dee1f77c0f9d5d7011c836b91ac..16b4328d933e4818d02ca33e1672ee1bd4be4ec0 100644
|
| --- a/chrome/common/pepper_flash.cc
|
| +++ b/chrome/common/pepper_flash.cc
|
| @@ -56,10 +56,10 @@ bool SupportsPepperInterface(const char* interface_name) {
|
| // Returns true if this browser implements one of the interfaces given in
|
| // |interface_string|, which is a '|'-separated string of interface names.
|
| bool CheckPepperFlashInterfaceString(const std::string& interface_string) {
|
| - std::vector<std::string> interface_names;
|
| - base::SplitString(interface_string, '|', &interface_names);
|
| - for (size_t i = 0; i < interface_names.size(); i++) {
|
| - if (SupportsPepperInterface(interface_names[i].c_str()))
|
| + for (const std::string& name : base::SplitString(
|
| + interface_string, "|",
|
| + base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL)) {
|
| + if (SupportsPepperInterface(name.c_str()))
|
| return true;
|
| }
|
| return false;
|
|
|