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

Unified Diff: chrome/browser/system_monitor/media_device_notifications_utils.cc

Issue 11363236: Revert 167606 - [Media Gallery][ChromeOS] Improve device media gallery names. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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
Index: chrome/browser/system_monitor/media_device_notifications_utils.cc
===================================================================
--- chrome/browser/system_monitor/media_device_notifications_utils.cc (revision 167608)
+++ chrome/browser/system_monitor/media_device_notifications_utils.cc (working copy)
@@ -6,10 +6,8 @@
#include "base/file_util.h"
#include "base/string_util.h"
-#include "base/utf_string_conversions.h"
#include "chrome/browser/system_monitor/removable_device_constants.h"
#include "content/public/browser/browser_thread.h"
-#include "ui/base/text/bytes_formatting.h"
namespace chrome {
@@ -27,27 +25,4 @@
return true;
}
-string16 GetFullProductName(const std::string& vendor_name,
- const std::string& model_name) {
- if (vendor_name.empty() && model_name.empty())
- return string16();
-
- std::string product_name;
- if (vendor_name.empty())
- product_name = model_name;
- else if (model_name.empty())
- product_name = vendor_name;
- else
- product_name = vendor_name + ", " + model_name;
- return IsStringUTF8(product_name) ?
- UTF8ToUTF16("(" + product_name + ")") : string16();
-}
-
-string16 GetDisplayNameForDevice(uint64 storage_size_in_bytes,
- const string16& name) {
- DCHECK(!name.empty());
- return (storage_size_in_bytes == 0) ?
- name : ui::FormatBytes(storage_size_in_bytes) + ASCIIToUTF16(" ") + name;
-}
-
} // namespace chrome
« no previous file with comments | « chrome/browser/system_monitor/media_device_notifications_utils.h ('k') | chrome/browser/system_monitor/media_storage_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698