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

Side by Side Diff: printing/backend/win_helper.cc

Issue 15995038: Use a direct include of utf_string_conversions.h in google_apis/, gpu/, ipc/, media/, ppapi/, print… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: better Created 7 years, 6 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 | « printing/backend/print_backend_win.cc ('k') | printing/print_settings_initializer.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) 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 "printing/backend/win_helper.h" 5 #include "printing/backend/win_helper.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/file_version_info.h" 9 #include "base/file_version_info.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
14 #include "printing/backend/print_backend.h" 14 #include "printing/backend/print_backend.h"
15 #include "printing/backend/print_backend_consts.h" 15 #include "printing/backend/print_backend_consts.h"
16 #include "printing/backend/printing_info_win.h" 16 #include "printing/backend/printing_info_win.h"
17 17
18 namespace { 18 namespace {
19 19
20 typedef HRESULT (WINAPI* PTOpenProviderProc)(PCWSTR printer_name, 20 typedef HRESULT (WINAPI* PTOpenProviderProc)(PCWSTR printer_name,
21 DWORD version, 21 DWORD version,
22 HPTPROVIDER* provider); 22 HPTPROVIDER* provider);
23 23
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 for (size_t i = 0; i < arraysize(info); ++i) { 335 for (size_t i = 0; i < arraysize(info); ++i) {
336 std::replace(info[i].begin(), info[i].end(), ';', ','); 336 std::replace(info[i].begin(), info[i].end(), ';', ',');
337 driver_info.append(info[i]); 337 driver_info.append(info[i]);
338 if (i < arraysize(info) - 1) 338 if (i < arraysize(info) - 1)
339 driver_info.append(";"); 339 driver_info.append(";");
340 } 340 }
341 return driver_info; 341 return driver_info;
342 } 342 }
343 343
344 } // namespace printing 344 } // namespace printing
OLDNEW
« no previous file with comments | « printing/backend/print_backend_win.cc ('k') | printing/print_settings_initializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698