diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-26 23:17:51 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-26 23:17:51 +0000 |
commit | 445d4ce3fed05b3bd6df61849f2178e6110d181a (patch) | |
tree | fb8538cb917b28dbb9da630a1604724bf0030ec3 /base | |
parent | 6aad4bd9df52e958bdc283f270b8775353589c4e (diff) | |
download | chromium_src-445d4ce3fed05b3bd6df61849f2178e6110d181a.zip chromium_src-445d4ce3fed05b3bd6df61849f2178e6110d181a.tar.gz chromium_src-445d4ce3fed05b3bd6df61849f2178e6110d181a.tar.bz2 |
Convert FileVersionInfo NOTIMPLEMENTED()s into a bug.
Review URL: http://codereview.chromium.org/27232
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10518 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/file_version_info_linux.cc | 30 |
1 files changed, 5 insertions, 25 deletions
diff --git a/base/file_version_info_linux.cc b/base/file_version_info_linux.cc index 4944591..af9029f 100644 --- a/base/file_version_info_linux.cc +++ b/base/file_version_info_linux.cc @@ -8,14 +8,12 @@ #include "base/logging.h" -// TODO(port): Replace stubs with real implementations. We need a non-NULL -// FileVersionInfo object that reads info about the current binary. This is -// relatively easy to do under Windows, as there's some win32 API functions -// that return that information and Microsoft encourages developers to fill out -// that standard information block. +// TODO(port): This whole file is stubbed. We can't return NULL +// because that is used as a catastrophic error code where the file +// doesn't exist or can't be opened. // -// We can't return NULL because that is used as a catastrophic error code where -// the file doesn't exist or can't be opened. +// See http://code.google.com/p/chromium/issues/detail?id=8132 for a discussion +// on what we should do with this module. FileVersionInfo::FileVersionInfo() {} @@ -23,87 +21,69 @@ FileVersionInfo::~FileVersionInfo() {} // static FileVersionInfo* FileVersionInfo::CreateFileVersionInfoForCurrentModule() { - NOTIMPLEMENTED() << "The current FileVersionInfo is a lie."; return new FileVersionInfo(); } std::wstring FileVersionInfo::company_name() { - NOTIMPLEMENTED() << "The current FileVersionInfo is a lie."; return L""; } std::wstring FileVersionInfo::company_short_name() { - NOTIMPLEMENTED() << "The current FileVersionInfo is a lie."; return L""; } std::wstring FileVersionInfo::product_name() { - NOTIMPLEMENTED() << "The current FileVersionInfo is a lie."; return L""; } std::wstring FileVersionInfo::product_short_name() { - NOTIMPLEMENTED() << "The current FileVersionInfo is a lie."; return L""; } std::wstring FileVersionInfo::internal_name() { - NOTIMPLEMENTED() << "The current FileVersionInfo is a lie."; return L""; } std::wstring FileVersionInfo::product_version() { - // When un-stubbing, implementation in file_version_info.cc should be ok. - NOTIMPLEMENTED() << "The current FileVersionInfo is a lie."; return L"0.1.2.3.4.5.6-lie"; } std::wstring FileVersionInfo::private_build() { - NOTIMPLEMENTED() << "The current FileVersionInfo is a lie."; return L""; } std::wstring FileVersionInfo::special_build() { - NOTIMPLEMENTED() << "The current FileVersionInfo is a lie."; return L""; } std::wstring FileVersionInfo::comments() { - NOTIMPLEMENTED() << "The current FileVersionInfo is a lie."; return L""; } std::wstring FileVersionInfo::original_filename() { - NOTIMPLEMENTED() << "The current FileVersionInfo is a lie."; return L""; } std::wstring FileVersionInfo::file_description() { - NOTIMPLEMENTED() << "The current FileVersionInfo is a lie."; return L""; } std::wstring FileVersionInfo::file_version() { - NOTIMPLEMENTED() << "The current FileVersionInfo is a lie."; return L"0.1.2.3.4.5.6-lie"; } std::wstring FileVersionInfo::legal_copyright() { - NOTIMPLEMENTED() << "The current FileVersionInfo is a lie."; return L""; } std::wstring FileVersionInfo::legal_trademarks() { - NOTIMPLEMENTED() << "The current FileVersionInfo is a lie."; return L""; } std::wstring FileVersionInfo::last_change() { - NOTIMPLEMENTED() << "The current FileVersionInfo is a lie."; return L"Last Thursday"; } bool FileVersionInfo::is_official_build() { - NOTIMPLEMENTED() << "The current FileVersionInfo is a lie."; return false; } |