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

Unified Diff: media/base/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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/media_resources.h ('k') | media/remoting/interstitial.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/media_resources.cc
diff --git a/media/base/media_resources.cc b/media/base/media_resources.cc
deleted file mode 100644
index 3a236326f5c2e07450a21f2203ee58475bd302fb..0000000000000000000000000000000000000000
--- a/media/base/media_resources.cc
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "media/base/media_resources.h"
-
-#include "base/logging.h"
-#include "base/strings/utf_string_conversions.h"
-#include "build/build_config.h"
-
-namespace media {
-
-static LocalizedStringProvider g_localized_string_provider = nullptr;
-
-void SetLocalizedStringProvider(LocalizedStringProvider func) {
- g_localized_string_provider = func;
-}
-
-#if !defined(OS_IOS)
-std::string GetLocalizedStringUTF8(MessageId message_id) {
- return base::UTF16ToUTF8(GetLocalizedStringUTF16(message_id));
-}
-
-base::string16 GetLocalizedStringUTF16(MessageId message_id) {
- return g_localized_string_provider ? g_localized_string_provider(message_id)
- : base::string16();
-}
-#endif
-
-} // namespace media
« no previous file with comments | « media/base/media_resources.h ('k') | media/remoting/interstitial.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698