Fix up namespaces

This commit is contained in:
Paul Betts 2015-07-24 03:27:15 -07:00
parent 08383a69ce
commit 75b08f510e

View file

@ -37,7 +37,10 @@ NotifyIcon::NotifyIcon(NotifyIconHost* host,
if (SUCCEEDED(GetCurrentProcessExplicitAppUserModelID(&explicit_app_id))) { if (SUCCEEDED(GetCurrentProcessExplicitAppUserModelID(&explicit_app_id))) {
// GUIDs and MD5 hashes are the same length. So convenient! // GUIDs and MD5 hashes are the same length. So convenient!
MD5Sum(explicit_app_id, sizeof(wchar_t) * wcslen(explicit_app_id), (MD5Digest*)&tray_app_id_hash_); base::MD5Sum(explicit_app_id,
sizeof(wchar_t) * wcslen(explicit_app_id),
(base::MD5Digest*)&tray_app_id_hash_);
CoTaskMemFree(explicit_app_id); CoTaskMemFree(explicit_app_id);
} }
@ -176,7 +179,7 @@ void NotifyIcon::InitIconData(NOTIFYICONDATA* icon_data) {
icon_data->cbSize = sizeof(NOTIFYICONDATA); icon_data->cbSize = sizeof(NOTIFYICONDATA);
icon_data->hWnd = window_; icon_data->hWnd = window_;
icon_data->uID = icon_id_; icon_data->uID = icon_id_;
memcpy(icon_data->guidItem, tray_app_id_hash_, sizeof(GUID)); memcpy((void*)&icon_data->guidItem, &tray_app_id_hash_, sizeof(GUID));
} }
} // namespace atom } // namespace atom