summaryrefslogtreecommitdiffstats
path: root/chrome_frame/chrome_active_document.cc
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-02 16:43:19 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-02 16:43:19 +0000
commite9b3528e6a8d79f465fcdd2e44477f1eb9275539 (patch)
tree35056a3c6b0d2b7e070b7979eb7f2da4f32e31d3 /chrome_frame/chrome_active_document.cc
parentfb4c4b4cc8f9391f382bd6429efc66c60444c63e (diff)
downloadchromium_src-e9b3528e6a8d79f465fcdd2e44477f1eb9275539.zip
chromium_src-e9b3528e6a8d79f465fcdd2e44477f1eb9275539.tar.gz
chromium_src-e9b3528e6a8d79f465fcdd2e44477f1eb9275539.tar.bz2
Misc. small cleanups I ran into while working on other changes.
BUG=none TEST=none Review URL: http://codereview.chromium.org/2486004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48730 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/chrome_active_document.cc')
-rw-r--r--chrome_frame/chrome_active_document.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome_frame/chrome_active_document.cc b/chrome_frame/chrome_active_document.cc
index 143a62b..1055b43 100644
--- a/chrome_frame/chrome_active_document.cc
+++ b/chrome_frame/chrome_active_document.cc
@@ -1101,6 +1101,8 @@ HRESULT ChromeActiveDocument::OnEncodingChange(const GUID* cmd_group_guid,
return E_FAIL;
}
+ // Using ARRAYSIZE_UNSAFE in here is because we define the struct
+ // EncodingMapData inside function.
const char* chrome_encoding_name = NULL;
for (int i = 0; i < ARRAYSIZE_UNSAFE(kEncodingTestDatas); ++i) {
const struct EncodingMapData* encoding_data = &kEncodingTestDatas[i];