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

Unified Diff: chromecast/shell/common/cast_content_client.cc

Issue 638803002: Reorganizes Chromecast code to better reflect functional dependencies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: extra DEPS: chromecast/crash/android --> chromecast/common Created 6 years, 2 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 | « chromecast/shell/common/cast_content_client.h ('k') | chromecast/shell/renderer/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/shell/common/cast_content_client.cc
diff --git a/chromecast/shell/common/cast_content_client.cc b/chromecast/shell/common/cast_content_client.cc
deleted file mode 100644
index e5827a1835272cece6aba72fbe2ee4fb5468badd..0000000000000000000000000000000000000000
--- a/chromecast/shell/common/cast_content_client.cc
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright 2014 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 "chromecast/shell/common/cast_content_client.h"
-
-#include "chromecast/common/version.h"
-#include "content/public/common/user_agent.h"
-#include "ui/base/l10n/l10n_util.h"
-#include "ui/base/resource/resource_bundle.h"
-
-namespace chromecast {
-namespace shell {
-
-std::string GetUserAgent() {
- std::string product = "Chrome/" PRODUCT_VERSION;
- return content::BuildUserAgentFromProduct(product) +
- " CrKey/" CAST_BUILD_REVISION;
-}
-
-CastContentClient::~CastContentClient() {
-}
-
-std::string CastContentClient::GetUserAgent() const {
- return chromecast::shell::GetUserAgent();
-}
-
-base::string16 CastContentClient::GetLocalizedString(int message_id) const {
- return l10n_util::GetStringUTF16(message_id);
-}
-
-base::StringPiece CastContentClient::GetDataResource(
- int resource_id,
- ui::ScaleFactor scale_factor) const {
- return ui::ResourceBundle::GetSharedInstance().GetRawDataResourceForScale(
- resource_id, scale_factor);
-}
-
-base::RefCountedStaticMemory* CastContentClient::GetDataResourceBytes(
- int resource_id) const {
- return ui::ResourceBundle::GetSharedInstance().LoadDataResourceBytes(
- resource_id);
-}
-
-gfx::Image& CastContentClient::GetNativeImageNamed(int resource_id) const {
- return ui::ResourceBundle::GetSharedInstance().GetNativeImageNamed(
- resource_id);
-}
-
-} // namespace shell
-} // namespace chromecast
« no previous file with comments | « chromecast/shell/common/cast_content_client.h ('k') | chromecast/shell/renderer/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698