Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Side by Side Diff: content/public/common/webplugininfo.cc

Issue 2262713003: Consistently use namespaced base::Version in plugins code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/common/webplugininfo_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "content/public/common/webplugininfo.h" 5 #include "content/public/common/webplugininfo.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 size_t j = 0; 94 size_t j = 0;
95 while (j < n && numbers[i][j] == '0') { 95 while (j < n && numbers[i][j] == '0') {
96 ++j; 96 ++j;
97 } 97 }
98 no_leading_zeros_version += (j < n) ? numbers[i].substr(j) : "0"; 98 no_leading_zeros_version += (j < n) ? numbers[i].substr(j) : "0";
99 if (i != numbers.size() - 1) { 99 if (i != numbers.size() - 1) {
100 no_leading_zeros_version += "."; 100 no_leading_zeros_version += ".";
101 } 101 }
102 } 102 }
103 103
104 *parsed_version = Version(no_leading_zeros_version); 104 *parsed_version = base::Version(no_leading_zeros_version);
105 } 105 }
106 106
107 } // namespace content 107 } // namespace content
OLDNEW
« no previous file with comments | « content/common/webplugininfo_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698