Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(399)

Side by Side Diff: chrome/app/breakpad_win.cc

Issue 12294008: Fix more remaining FilePath -> base::FilePath. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/win/shortcut_unittest.cc ('k') | chrome/app/chrome_main_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/app/breakpad_win.h" 5 #include "chrome/app/breakpad_win.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <shellapi.h> 8 #include <shellapi.h>
9 #include <tchar.h> 9 #include <tchar.h>
10 #include <userenv.h> 10 #include <userenv.h>
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 } 306 }
307 return profile_type; 307 return profile_type;
308 } 308 }
309 309
310 // Returns the custom info structure based on the dll in parameter and the 310 // Returns the custom info structure based on the dll in parameter and the
311 // process type. 311 // process type.
312 google_breakpad::CustomClientInfo* GetCustomInfo(const std::wstring& exe_path, 312 google_breakpad::CustomClientInfo* GetCustomInfo(const std::wstring& exe_path,
313 const std::wstring& type, 313 const std::wstring& type,
314 const std::wstring& channel) { 314 const std::wstring& channel) {
315 scoped_ptr<FileVersionInfo> 315 scoped_ptr<FileVersionInfo>
316 version_info(FileVersionInfo::CreateFileVersionInfo(FilePath(exe_path))); 316 version_info(FileVersionInfo::CreateFileVersionInfo(
317 base::FilePath(exe_path)));
317 318
318 std::wstring version, product; 319 std::wstring version, product;
319 std::wstring special_build; 320 std::wstring special_build;
320 if (version_info.get()) { 321 if (version_info.get()) {
321 // Get the information from the file. 322 // Get the information from the file.
322 version = version_info->product_version(); 323 version = version_info->product_version();
323 if (!version_info->is_official_build()) 324 if (!version_info->is_official_build())
324 version.append(L"-devel"); 325 version.append(L"-devel");
325 326
326 const CommandLine& command = *CommandLine::ForCurrentProcess(); 327 const CommandLine& command = *CommandLine::ForCurrentProcess();
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
1005 previous_filter = SetUnhandledExceptionFilter(filter); 1006 previous_filter = SetUnhandledExceptionFilter(filter);
1006 } 1007 }
1007 1008
1008 void StringVectorToCStringVector(const std::vector<std::wstring>& wstrings, 1009 void StringVectorToCStringVector(const std::vector<std::wstring>& wstrings,
1009 std::vector<const wchar_t*>* cstrings) { 1010 std::vector<const wchar_t*>* cstrings) {
1010 cstrings->clear(); 1011 cstrings->clear();
1011 cstrings->reserve(wstrings.size()); 1012 cstrings->reserve(wstrings.size());
1012 for (size_t i = 0; i < wstrings.size(); ++i) 1013 for (size_t i = 0; i < wstrings.size(); ++i)
1013 cstrings->push_back(wstrings[i].c_str()); 1014 cstrings->push_back(wstrings[i].c_str());
1014 } 1015 }
OLDNEW
« no previous file with comments | « base/win/shortcut_unittest.cc ('k') | chrome/app/chrome_main_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698