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

Unified Diff: media/base/fake_media_resources.cc

Issue 1376533003: Return correct name for default device in fake localization provider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/fake_media_resources.cc
diff --git a/media/base/fake_media_resources.cc b/media/base/fake_media_resources.cc
index 5e3a9bb92fd78bcc65bc96ad5edd686375dfc0eb..67ac7262403124f040945d03062cf5b21640af87 100644
--- a/media/base/fake_media_resources.cc
+++ b/media/base/fake_media_resources.cc
@@ -8,6 +8,9 @@
namespace media {
base::string16 FakeLocalizedStringProvider(MessageId message_id) {
+ if (message_id == DEFAULT_AUDIO_DEVICE_NAME)
+ return base::ASCIIToUTF16("Default");
+
return base::ASCIIToUTF16("FakeString");
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698