Chromium Code Reviews| Index: chrome/common/chrome_content_client.cc |
| diff --git a/chrome/common/chrome_content_client.cc b/chrome/common/chrome_content_client.cc |
| index 50064fb5e0a513bb532e02e2bb0c39ccde5a426c..b69a218e3fcb9e0481365cf8d2fad04d808ddbff 100644 |
| --- a/chrome/common/chrome_content_client.cc |
| +++ b/chrome/common/chrome_content_client.cc |
| @@ -470,8 +470,9 @@ content::PepperPluginInfo* ChromeContentClient::FindMostRecentPlugin( |
| Version version_x(x->version); |
| Version version_y(y->version); |
| DCHECK(version_x.IsValid() && version_y.IsValid()); |
| - if (version_x.Equals(version_y)) |
| + if (version_x == version_y) { |
|
brettw
2016/01/08 19:31:16
There's no need to add {} here: generally we would
Rob Percival
2016/01/09 23:54:03
Done. I'm in the habit of putting braces in since
|
| return !x->is_debug && y->is_debug; |
| + } |
| return version_x.IsOlderThan(y->version); |
|
brettw
2016/01/08 19:31:16
Can you update this to:
return version_x < versi
Rob Percival
2016/01/09 23:54:03
Done.
|
| }); |
| return it != plugins.end() ? *it : nullptr; |