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

Unified Diff: chrome/browser/web_applications/web_app_mac.mm

Issue 985573003: Support 32-bit subversion fields in base::Version. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add a static assert Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/web_applications/web_app_mac.mm
diff --git a/chrome/browser/web_applications/web_app_mac.mm b/chrome/browser/web_applications/web_app_mac.mm
index 799407a5dfb484f3df0f0bf3ee3ca27fcd9be320..a24d95631f6cf301138b2f7116f699787d4f150e 100644
--- a/chrome/browser/web_applications/web_app_mac.mm
+++ b/chrome/browser/web_applications/web_app_mac.mm
@@ -502,7 +502,7 @@ web_app::ShortcutInfo RecordAppShimErrorAndBuildShortcutInfo(
NSDictionary* plist = ReadPlist(GetPlistPath(bundle_path));
base::Version full_version(base::SysNSStringToUTF8(
[plist valueForKey:app_mode::kCFBundleShortVersionStringKey]));
- int major_version = 0;
+ uint32_t major_version = 0;
if (full_version.IsValid())
major_version = full_version.components()[0];
UMA_HISTOGRAM_SPARSE_SLOWLY("Apps.AppShimErrorVersion", major_version);
« no previous file with comments | « chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc ('k') | chrome/installer/setup/install_worker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698