From 4522cfd1ec9feba623eee66116e2aeda4081198e Mon Sep 17 00:00:00 2001 From: "rahulk@google.com" Date: Fri, 29 Aug 2008 23:58:10 +0000 Subject: Initialize Breakpad for Chromium as well. BU=1296800 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1572 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/app/google_update_client.cc | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'chrome/app/google_update_client.cc') 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 { -- cgit v1.1