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

Side by Side Diff: chrome/service/cloud_print/print_system_xps_win.cc

Issue 94013004: Add base:: to string16s in chrome/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: try again Created 7 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "base/file_util.h" 5 #include "base/file_util.h"
6 #include "base/strings/utf_string_conversions.h" 6 #include "base/strings/utf_string_conversions.h"
7 #include "base/win/object_watcher.h" 7 #include "base/win/object_watcher.h"
8 #include "base/win/scoped_bstr.h" 8 #include "base/win/scoped_bstr.h"
9 #include "base/win/scoped_comptr.h" 9 #include "base/win/scoped_comptr.h"
10 #include "base/win/scoped_hdc.h" 10 #include "base/win/scoped_hdc.h"
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 168
169 HDC dc = CreateDC(L"WINSPOOL", UTF8ToWide(printer_name).c_str(), 169 HDC dc = CreateDC(L"WINSPOOL", UTF8ToWide(printer_name).c_str(),
170 NULL, pt_dev_mode.dm_); 170 NULL, pt_dev_mode.dm_);
171 if (!dc) { 171 if (!dc) {
172 NOTREACHED(); 172 NOTREACHED();
173 return false; 173 return false;
174 } 174 }
175 hr = E_FAIL; 175 hr = E_FAIL;
176 DOCINFO di = {0}; 176 DOCINFO di = {0};
177 di.cbSize = sizeof(DOCINFO); 177 di.cbSize = sizeof(DOCINFO);
178 string16 doc_name = UTF8ToUTF16(job_title); 178 base::string16 doc_name = UTF8ToUTF16(job_title);
179 DCHECK(printing::SimplifyDocumentTitle(doc_name) == doc_name); 179 DCHECK(printing::SimplifyDocumentTitle(doc_name) == doc_name);
180 di.lpszDocName = doc_name.c_str(); 180 di.lpszDocName = doc_name.c_str();
181 job_id_ = StartDoc(dc, &di); 181 job_id_ = StartDoc(dc, &di);
182 if (job_id_ <= 0) 182 if (job_id_ <= 0)
183 return false; 183 return false;
184 184
185 printer_dc_.Set(dc); 185 printer_dc_.Set(dc);
186 saved_dc_ = SaveDC(printer_dc_.Get()); 186 saved_dc_ = SaveDC(printer_dc_.Get());
187 print_data_file_path_ = print_data_file_path; 187 print_data_file_path_ = print_data_file_path;
188 delegate_ = delegate; 188 delegate_ = delegate;
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 } 577 }
578 578
579 } // namespace 579 } // namespace
580 580
581 scoped_refptr<PrintSystem> PrintSystem::CreateInstance( 581 scoped_refptr<PrintSystem> PrintSystem::CreateInstance(
582 const base::DictionaryValue* print_system_settings) { 582 const base::DictionaryValue* print_system_settings) {
583 return new PrintSystemWinXPS; 583 return new PrintSystemWinXPS;
584 } 584 }
585 585
586 } // namespace cloud_print 586 } // namespace cloud_print
OLDNEW
« no previous file with comments | « chrome/service/cloud_print/cloud_print_connector.cc ('k') | chrome/service/cloud_print/printer_job_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698