summaryrefslogtreecommitdiffstats
path: root/chrome_frame
diff options
context:
space:
mode:
authorgrt@chromium.org <grt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-29 05:09:42 +0000
committergrt@chromium.org <grt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-29 05:09:42 +0000
commit5ba4b8a98587c4acd7806d952cc087e4333d2429 (patch)
tree4ca791549151380bf6688f3d9c78f7b334ef354a /chrome_frame
parent51a6da4b49ed4ac1027109ecf7b247fd358073a6 (diff)
downloadchromium_src-5ba4b8a98587c4acd7806d952cc087e4333d2429.zip
chromium_src-5ba4b8a98587c4acd7806d952cc087e4333d2429.tar.gz
chromium_src-5ba4b8a98587c4acd7806d952cc087e4333d2429.tar.bz2
Report IE 10 in histograms.
BUG=none TEST=look for "METRICS LOG: " in Sawbuck 30 seconds after GCF starts and see what is sent for ChromeFrame.IEVersion. Review URL: http://codereview.chromium.org/8038071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103239 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame')
-rw-r--r--chrome_frame/chrome_frame_activex_base.h4
-rw-r--r--chrome_frame/utils.cc7
-rw-r--r--chrome_frame/utils.h1
3 files changed, 8 insertions, 4 deletions
diff --git a/chrome_frame/chrome_frame_activex_base.h b/chrome_frame/chrome_frame_activex_base.h
index 46287fd7..7808bd5 100644
--- a/chrome_frame/chrome_frame_activex_base.h
+++ b/chrome_frame/chrome_frame_activex_base.h
@@ -257,8 +257,8 @@ END_MSG_MAP()
UMA_HISTOGRAM_CUSTOM_COUNTS("ChromeFrame.IEVersion",
GetIEVersion(),
IE_INVALID,
- IE_9,
- IE_9 + 1);
+ IE_10,
+ IE_10 + 1);
}
return S_OK;
diff --git a/chrome_frame/utils.cc b/chrome_frame/utils.cc
index b80511e..b9dcc5a 100644
--- a/chrome_frame/utils.cc
+++ b/chrome_frame/utils.cc
@@ -409,8 +409,11 @@ IEVersion GetIEVersion() {
case 8:
ie_version = IE_8;
break;
+ case 9:
+ ie_version = IE_9;
+ break;
default:
- ie_version = major_version >= 9 ? IE_9 : IE_UNSUPPORTED;
+ ie_version = (major_version >= 10) ? IE_10 : IE_UNSUPPORTED;
break;
}
}
@@ -513,8 +516,8 @@ bool GetModuleVersion(HMODULE module, uint32* high, uint32* low) {
// Copy data as VerQueryValue tries to modify the data. This causes
// exceptions and heap corruption errors if debugger is attached.
scoped_array<char> data(new char[version_resource_size]);
- memcpy(data.get(), readonly_resource_data, version_resource_size);
if (data.get()) {
+ memcpy(data.get(), readonly_resource_data, version_resource_size);
VS_FIXEDFILEINFO* ver_info = NULL;
UINT info_size = 0;
if (VerQueryValue(data.get(), L"\\",
diff --git a/chrome_frame/utils.h b/chrome_frame/utils.h
index a41978e..6d6a5d6 100644
--- a/chrome_frame/utils.h
+++ b/chrome_frame/utils.h
@@ -162,6 +162,7 @@ typedef enum IEVersion {
IE_7,
IE_8,
IE_9,
+ IE_10,
};
// The renderer to be used for a page. Values for Chrome also convey the