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

Unified Diff: chrome/browser/local_discovery/privet_local_printer_lister.h

Issue 333243007: Don't crash on device resolution failure. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/local_discovery/privet_local_printer_lister.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/local_discovery/privet_local_printer_lister.h
diff --git a/chrome/browser/local_discovery/privet_local_printer_lister.h b/chrome/browser/local_discovery/privet_local_printer_lister.h
index 0652671bc772d103ab2d41b9df5cd178c389bce6..663320669b2724de581f3dc698c764c2d3b59e89 100644
--- a/chrome/browser/local_discovery/privet_local_printer_lister.h
+++ b/chrome/browser/local_discovery/privet_local_printer_lister.h
@@ -57,10 +57,11 @@ class PrivetLocalPrinterLister : PrivetDeviceLister::Delegate {
typedef std::map<std::string, linked_ptr<DeviceContext> > DeviceContextMap;
void OnPrivetInfoDone(DeviceContext* context,
- std::string name,
+ const std::string& name,
const base::DictionaryValue* json_value);
- void OnPrivetResolved(scoped_ptr<PrivetHTTPClient> http_client);
+ void OnPrivetResolved(const std::string& name,
+ scoped_ptr<PrivetHTTPClient> http_client);
scoped_ptr<PrivetHTTPAsynchronousFactory> privet_http_factory_;
DeviceContextMap device_contexts_;
« no previous file with comments | « no previous file | chrome/browser/local_discovery/privet_local_printer_lister.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698