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

Unified Diff: chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc

Issue 284543002: Display different icons for different device types. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Mon 05/12/2014 14:15:39.40 Created 6 years, 7 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 | « chrome/browser/ui/webui/local_discovery/local_discovery_ui.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc
diff --git a/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc b/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc
index 2c281c8121d555a49c27276c42e53c079309d756..4f3c2477dedc4fd0d620e5fa4a1d76a3a7b1ca21 100644
--- a/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc
+++ b/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc
@@ -356,6 +356,7 @@ void LocalDiscoveryUIHandler::DeviceChanged(
info.SetString("service_name", name);
info.SetString("human_readable_name", description.name);
info.SetString("description", description.description);
+ info.SetString("type", description.type);
web_ui()->CallJavascriptFunction(
"local_discovery.onUnregisteredDeviceUpdate",
@@ -481,6 +482,7 @@ scoped_ptr<base::DictionaryValue> LocalDiscoveryUIHandler::CreatePrinterInfo(
return_value->SetString("id", description.id);
return_value->SetString("display_name", description.display_name);
return_value->SetString("description", description.description);
+ return_value->SetString("type", "printer");
return return_value.Pass();
}
« no previous file with comments | « chrome/browser/ui/webui/local_discovery/local_discovery_ui.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698