summaryrefslogtreecommitdiffstats
path: root/chrome_frame/chrome_active_document.cc
diff options
context:
space:
mode:
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];