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

Side by Side Diff: media/base/fake_media_resources.cc

Issue 2656523002: Rename media_resources -> localized_strings (Closed)
Patch Set: rebase Created 3 years, 11 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
« no previous file with comments | « media/base/fake_media_resources.h ('k') | media/base/localized_strings.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/strings/utf_string_conversions.h"
6 #include "media/base/media_resources.h"
7
8 namespace media {
9
10 base::string16 FakeLocalizedStringProvider(MessageId message_id) {
11 if (message_id == DEFAULT_AUDIO_DEVICE_NAME)
12 return base::ASCIIToUTF16("Default");
13
14 return base::ASCIIToUTF16("FakeString");
15 }
16
17 void SetUpFakeMediaResources() {
18 SetLocalizedStringProvider(FakeLocalizedStringProvider);
19 }
20
21 } // namespace media
OLDNEW
« no previous file with comments | « media/base/fake_media_resources.h ('k') | media/base/localized_strings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698