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

Side by Side Diff: chrome/tools/crash_service/crash_service.cc

Issue 18383003: Move DeleteAfterReboot and Move to base namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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
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/tools/crash_service/crash_service.h" 5 #include "chrome/tools/crash_service/crash_service.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 8
9 #include <sddl.h> 9 #include <sddl.h>
10 #include <fstream> 10 #include <fstream>
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 CustomInfoToMap(client_info, self->reporter_tag_, &map); 365 CustomInfoToMap(client_info, self->reporter_tag_, &map);
366 366
367 // Move dump file to the directory under client breakpad dump location. 367 // Move dump file to the directory under client breakpad dump location.
368 base::FilePath dump_location = base::FilePath(*file_path); 368 base::FilePath dump_location = base::FilePath(*file_path);
369 CrashMap::const_iterator it = map.find(L"breakpad-dump-location"); 369 CrashMap::const_iterator it = map.find(L"breakpad-dump-location");
370 if (it != map.end()) { 370 if (it != map.end()) {
371 base::FilePath alternate_dump_location = base::FilePath(it->second); 371 base::FilePath alternate_dump_location = base::FilePath(it->second);
372 file_util::CreateDirectoryW(alternate_dump_location); 372 file_util::CreateDirectoryW(alternate_dump_location);
373 alternate_dump_location = alternate_dump_location.Append( 373 alternate_dump_location = alternate_dump_location.Append(
374 dump_location.BaseName()); 374 dump_location.BaseName());
375 file_util::Move(dump_location, alternate_dump_location); 375 base::Move(dump_location, alternate_dump_location);
376 dump_location = alternate_dump_location; 376 dump_location = alternate_dump_location;
377 } 377 }
378 378
379 DWORD pid = client_info->pid(); 379 DWORD pid = client_info->pid();
380 VLOG(1) << "dump for pid = " << pid << " is " << dump_location.value(); 380 VLOG(1) << "dump for pid = " << pid << " is " << dump_location.value();
381 381
382 if (!WriteCustomInfoToFile(dump_location.value(), map)) { 382 if (!WriteCustomInfoToFile(dump_location.value(), map)) {
383 LOG(ERROR) << "could not write custom info file"; 383 LOG(ERROR) << "could not write custom info file";
384 } 384 }
385 385
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 SDDL_REVISION, 498 SDDL_REVISION,
499 &sec_desc, NULL)) { 499 &sec_desc, NULL)) {
500 if (::GetSecurityDescriptorSacl(sec_desc, &sacl_present, &sacl, 500 if (::GetSecurityDescriptorSacl(sec_desc, &sacl_present, &sacl,
501 &sacl_defaulted)) { 501 &sacl_defaulted)) {
502 return sec_desc; 502 return sec_desc;
503 } 503 }
504 } 504 }
505 505
506 return NULL; 506 return NULL;
507 } 507 }
OLDNEW
« no previous file with comments | « chrome/test/reliability/page_load_test.cc ('k') | chrome_frame/test/dll_redirector_loading_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698