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

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

Issue 270062: Use ASCII strings for switch names. (Closed)
Patch Set: victory Created 11 years, 2 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
« no previous file with comments | « chrome/tools/crash_service/crash_service.h ('k') | chrome_frame/chrome_launcher_unittest.cc » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 <iostream> 9 #include <iostream>
10 #include <fstream> 10 #include <fstream>
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 140
141 DumpJobInfo(DWORD process_id, CrashService* service, 141 DumpJobInfo(DWORD process_id, CrashService* service,
142 const CrashMap& crash_map, const std::wstring& path) 142 const CrashMap& crash_map, const std::wstring& path)
143 : pid(process_id), self(service), map(crash_map), dump_path(path) { 143 : pid(process_id), self(service), map(crash_map), dump_path(path) {
144 } 144 }
145 }; 145 };
146 146
147 } // namespace 147 } // namespace
148 148
149 // Command line switches: 149 // Command line switches:
150 const wchar_t CrashService::kMaxReports[] = L"max-reports"; 150 const char CrashService::kMaxReports[] = "max-reports";
151 const wchar_t CrashService::kNoWindow[] = L"no-window"; 151 const char CrashService::kNoWindow[] = "no-window";
152 const wchar_t CrashService::kReporterTag[]= L"reporter"; 152 const char CrashService::kReporterTag[] = "reporter";
153 153
154 CrashService::CrashService(const std::wstring& report_dir) 154 CrashService::CrashService(const std::wstring& report_dir)
155 : report_path_(report_dir), 155 : report_path_(report_dir),
156 sender_(NULL), 156 sender_(NULL),
157 dumper_(NULL), 157 dumper_(NULL),
158 requests_handled_(0), 158 requests_handled_(0),
159 requests_sent_(0), 159 requests_sent_(0),
160 clients_connected_(0), 160 clients_connected_(0),
161 clients_terminated_(0) { 161 clients_terminated_(0) {
162 chrome::RegisterPathProvider(); 162 chrome::RegisterPathProvider();
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 ::Sleep(50); 420 ::Sleep(50);
421 } 421 }
422 422
423 LOG(INFO) << "clients connected :" << clients_connected_; 423 LOG(INFO) << "clients connected :" << clients_connected_;
424 LOG(INFO) << "clients terminated :" << clients_terminated_; 424 LOG(INFO) << "clients terminated :" << clients_terminated_;
425 LOG(INFO) << "dumps serviced :" << requests_handled_; 425 LOG(INFO) << "dumps serviced :" << requests_handled_;
426 LOG(INFO) << "dumps reported :" << requests_sent_; 426 LOG(INFO) << "dumps reported :" << requests_sent_;
427 427
428 return static_cast<int>(msg.wParam); 428 return static_cast<int>(msg.wParam);
429 } 429 }
OLDNEW
« no previous file with comments | « chrome/tools/crash_service/crash_service.h ('k') | chrome_frame/chrome_launcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698