summaryrefslogtreecommitdiffstats
path: root/chrome/app/google_update_client.cc
diff options
context:
space:
mode:
authorrahulk@google.com <rahulk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-29 23:58:10 +0000
committerrahulk@google.com <rahulk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-29 23:58:10 +0000
commit4522cfd1ec9feba623eee66116e2aeda4081198e (patch)
tree9edf7953640b0cc016eee15602d451f124915161 /chrome/app/google_update_client.cc
parent5daa269e3d3c10e9169f7c4ec23cc218f3ea5347 (diff)
downloadchromium_src-4522cfd1ec9feba623eee66116e2aeda4081198e.zip
chromium_src-4522cfd1ec9feba623eee66116e2aeda4081198e.tar.gz
chromium_src-4522cfd1ec9feba623eee66116e2aeda4081198e.tar.bz2
Initialize Breakpad for Chromium as well.
BU=1296800 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1572 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app/google_update_client.cc')
-rw-r--r--chrome/app/google_update_client.cc14
1 files changed, 1 insertions, 13 deletions
diff --git a/chrome/app/google_update_client.cc b/chrome/app/google_update_client.cc
index 11ea6ec..8c0e168 100644
--- a/chrome/app/google_update_client.cc
+++ b/chrome/app/google_update_client.cc
@@ -44,19 +44,7 @@ GoogleUpdateClient::~GoogleUpdateClient() {
}
std::wstring GoogleUpdateClient::GetDLLPath() {
- if (client_util::FileExists(dll_path_))
- return std::wstring(dll_path_) + L"\\" + dll_;
-
- // This is not an official build. Find the dll using the default
- // path order in LoadLibrary.
- wchar_t path[MAX_PATH] = {0};
- wchar_t* file_part = NULL;
- DWORD result = ::SearchPath(NULL, dll_.c_str(), NULL, MAX_PATH,
- path, &file_part);
- if (result == 0 || result > MAX_PATH)
- return std::wstring();
-
- return path;
+ return client_util::GetDLLPath(dll_, dll_path_);
}
const wchar_t* GoogleUpdateClient::GetVersion() const {