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

Side by Side Diff: chrome/browser/local_discovery/privet_local_printer_lister.cc

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 of 4. (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 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 "chrome/browser/local_discovery/privet_local_printer_lister.h" 5 #include "chrome/browser/local_discovery/privet_local_printer_lister.h"
6 6
7 #include <stddef.h>
8
7 #include <string> 9 #include <string>
8 10
9 #include "chrome/browser/local_discovery/privet_constants.h" 11 #include "chrome/browser/local_discovery/privet_constants.h"
10 #include "chrome/browser/local_discovery/privet_device_lister_impl.h" 12 #include "chrome/browser/local_discovery/privet_device_lister_impl.h"
11 #include "chrome/browser/local_discovery/privet_http_asynchronous_factory.h" 13 #include "chrome/browser/local_discovery/privet_http_asynchronous_factory.h"
12 14
13 namespace local_discovery { 15 namespace local_discovery {
14 16
15 struct PrivetLocalPrinterLister::DeviceContext { 17 struct PrivetLocalPrinterLister::DeviceContext {
16 DeviceContext() : has_local_printing(false) { 18 DeviceContext() : has_local_printing(false) {
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 } 129 }
128 130
129 const DeviceDescription* PrivetLocalPrinterLister::GetDeviceDescription( 131 const DeviceDescription* PrivetLocalPrinterLister::GetDeviceDescription(
130 const std::string& name) { 132 const std::string& name) {
131 DeviceContextMap::iterator i = device_contexts_.find(name); 133 DeviceContextMap::iterator i = device_contexts_.find(name);
132 if (i == device_contexts_.end()) return NULL; 134 if (i == device_contexts_.end()) return NULL;
133 return &i->second->description; 135 return &i->second->description;
134 } 136 }
135 137
136 } // namespace local_discovery 138 } // namespace local_discovery
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698