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

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

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/service/cloud_print/cdd_conversion_win.h" 5 #include "chrome/service/cloud_print/cdd_conversion_win.h"
6 6
7 #include <stddef.h>
8
7 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
8 #include "components/cloud_devices/common/printer_description.h" 10 #include "components/cloud_devices/common/printer_description.h"
9 #include "printing/backend/win_helper.h" 11 #include "printing/backend/win_helper.h"
10 12
11 namespace cloud_print { 13 namespace cloud_print {
12 14
13 bool IsValidCjt(const std::string& print_ticket_data) { 15 bool IsValidCjt(const std::string& print_ticket_data) {
14 cloud_devices::CloudDeviceDescription description; 16 cloud_devices::CloudDeviceDescription description;
15 return description.InitFromString(print_ticket_data); 17 return description.InitFromString(print_ticket_data);
16 } 18 }
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 dev_mode->dmPaperWidth = width; 124 dev_mode->dmPaperWidth = width;
123 dev_mode->dmFields |= DM_PAPERLENGTH; 125 dev_mode->dmFields |= DM_PAPERLENGTH;
124 dev_mode->dmPaperLength = height; 126 dev_mode->dmPaperLength = height;
125 } 127 }
126 } 128 }
127 129
128 return printing::CreateDevMode(printer.Get(), dev_mode.get()); 130 return printing::CreateDevMode(printer.Get(), dev_mode.get());
129 } 131 }
130 132
131 } // namespace cloud_print 133 } // namespace cloud_print
OLDNEW
« no previous file with comments | « chrome/renderer/worker_content_settings_client_proxy.h ('k') | chrome/service/cloud_print/cloud_print_auth.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698