Add API to override browser version.

This commit is contained in:
Cheng Zhao 2013-12-05 10:26:01 +08:00
parent 02bbf07d3a
commit 420ae1a2cc
6 changed files with 40 additions and 3 deletions

View file

@ -43,7 +43,7 @@ void Browser::Focus() {
EnumWindows(&WindowsEnumerationHandler, reinterpret_cast<LPARAM>(&pid));
}
std::string Browser::GetVersion() {
std::string Browser::GetExecutableFileVersion() const {
base::FilePath path;
if (PathService::Get(base::FILE_EXE, &path)) {
scoped_ptr<FileVersionInfo> version_info(