Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome_frame/utils.h" | 5 #include "chrome_frame/utils.h" |
| 6 | 6 |
| 7 #include <atlsafe.h> | 7 #include <atlsafe.h> |
| 8 #include <atlsecurity.h> | 8 #include <atlsecurity.h> |
| 9 #include <htiframe.h> | 9 #include <htiframe.h> |
| 10 #include <mshtml.h> | 10 #include <mshtml.h> |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 288 content_value->assign(attribute.Copy()); | 288 content_value->assign(attribute.Copy()); |
| 289 return S_OK; | 289 return S_OK; |
| 290 } | 290 } |
| 291 | 291 |
| 292 return E_FAIL; | 292 return E_FAIL; |
| 293 } | 293 } |
| 294 | 294 |
| 295 void DisplayVersionMismatchWarning(HWND parent, | 295 void DisplayVersionMismatchWarning(HWND parent, |
| 296 const std::string& server_version) { | 296 const std::string& server_version) { |
| 297 // Obtain the current module version. | 297 // Obtain the current module version. |
| 298 FileVersionInfo* file_version_info = | 298 scoped_ptr<FileVersionInfo> module_version_info( |
| 299 FileVersionInfo::CreateFileVersionInfoForCurrentModule(); | 299 FileVersionInfo::CreateFileVersionInfoForCurrentModule()); |
| 300 DCHECK(file_version_info); | 300 DCHECK(module_version_info.get() != NULL); |
|
grt (UTC plus 2)
2012/09/14 17:25:58
please remove this DCHECK as per other review (sco
huangs
2012/09/14 17:48:21
Done.
| |
| 301 std::wstring version_string(file_version_info->file_version()); | 301 std::wstring version_string(module_version_info->file_version()); |
| 302 std::wstring wide_server_version; | 302 std::wstring wide_server_version; |
| 303 if (server_version.empty()) { | 303 if (server_version.empty()) { |
| 304 wide_server_version = SimpleResourceLoader::Get(IDS_VERSIONUNKNOWN); | 304 wide_server_version = SimpleResourceLoader::Get(IDS_VERSIONUNKNOWN); |
| 305 } else { | 305 } else { |
| 306 wide_server_version = ASCIIToWide(server_version); | 306 wide_server_version = ASCIIToWide(server_version); |
| 307 } | 307 } |
| 308 std::wstring title = SimpleResourceLoader::Get(IDS_VERSIONMISMATCH_HEADER); | 308 std::wstring title = SimpleResourceLoader::Get(IDS_VERSIONMISMATCH_HEADER); |
| 309 std::wstring message; | 309 std::wstring message; |
| 310 base::SStringPrintf(&message, | 310 base::SStringPrintf(&message, |
| 311 SimpleResourceLoader::Get(IDS_VERSIONMISMATCH).c_str(), | 311 SimpleResourceLoader::Get(IDS_VERSIONMISMATCH).c_str(), |
| (...skipping 1359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1671 wininet_connection_count_updated = true; | 1671 wininet_connection_count_updated = true; |
| 1672 return true; | 1672 return true; |
| 1673 } | 1673 } |
| 1674 | 1674 |
| 1675 void GetChromeFrameProfilePath(const string16& profile_name, | 1675 void GetChromeFrameProfilePath(const string16& profile_name, |
| 1676 FilePath* profile_path) { | 1676 FilePath* profile_path) { |
| 1677 chrome::GetChromeFrameUserDataDirectory(profile_path); | 1677 chrome::GetChromeFrameUserDataDirectory(profile_path); |
| 1678 *profile_path = profile_path->Append(profile_name); | 1678 *profile_path = profile_path->Append(profile_name); |
| 1679 DVLOG(1) << __FUNCTION__ << ": " << profile_path->value(); | 1679 DVLOG(1) << __FUNCTION__ << ": " << profile_path->value(); |
| 1680 } | 1680 } |
| OLD | NEW |