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

Unified Diff: chrome/common/chrome_content_client_ios.mm

Issue 2622693002: Cleanup of static lists of schemes & origins that are created at startup. (Closed)
Patch Set: merge 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 | « chrome/common/chrome_content_client.cc ('k') | chrome/common/secure_origin_whitelist.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_content_client_ios.mm
diff --git a/chrome/common/chrome_content_client_ios.mm b/chrome/common/chrome_content_client_ios.mm
deleted file mode 100644
index fb603f7e50fe8ba485a0bd3ee979492f21ac77bb..0000000000000000000000000000000000000000
--- a/chrome/common/chrome_content_client_ios.mm
+++ /dev/null
@@ -1,74 +0,0 @@
-// Copyright 2012 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 "chrome/common/chrome_content_client.h"
-
-#include "base/logging.h"
-#include "base/strings/string_piece.h"
-#include "chrome/common/url_constants.h"
-#include "components/version_info/version_info.h"
-#include "content/public/common/user_agent.h"
-#include "ui/base/l10n/l10n_util.h"
-#include "ui/base/resource/resource_bundle.h"
-#include "url/gurl.h"
-#include "url/url_util.h"
-
-// TODO(ios): Investigate merging with chrome_content_client.cc; this would
-// requiring either a lot of ifdefing, or spliting the file into parts.
-
-void ChromeContentClient::SetActiveURL(const GURL& url) {
- NOTIMPLEMENTED();
-}
-
-void ChromeContentClient::SetGpuInfo(const gpu::GPUInfo& gpu_info) {
- NOTIMPLEMENTED();
-}
-
-void ChromeContentClient::AddPepperPlugins(
- std::vector<content::PepperPluginInfo>* plugins) {
- NOTREACHED();
-}
-
-void ChromeContentClient::AddAdditionalSchemes(
- std::vector<url::SchemeWithType>* standard_schemes,
- std::vector<url::SchemeWithType>* referrer_schemes,
- std::vector<std::string>* saveable_shemes) {
- // No additional schemes for iOS.
-}
-
-std::string ChromeContentClient::GetProduct() const {
- std::string product("CriOS/");
- product += version_info::GetVersionNumber();
- return product;
-}
-
-std::string ChromeContentClient::GetUserAgent() const {
- std::string product = GetProduct();
- return content::BuildUserAgentFromProduct(product);
-}
-
-base::string16 ChromeContentClient::GetLocalizedString(int message_id) const {
- return l10n_util::GetStringUTF16(message_id);
-}
-
-base::StringPiece ChromeContentClient::GetDataResource(
- int resource_id,
- ui::ScaleFactor scale_factor) const {
- return ResourceBundle::GetSharedInstance().GetRawDataResourceForScale(
- resource_id, scale_factor);
-}
-
-base::RefCountedStaticMemory* ChromeContentClient::GetDataResourceBytes(
- int resource_id) const {
- return ResourceBundle::GetSharedInstance().LoadDataResourceBytes(resource_id);
-}
-
-gfx::Image& ChromeContentClient::GetNativeImageNamed(int resource_id) const {
- return ResourceBundle::GetSharedInstance().GetNativeImageNamed(resource_id);
-}
-
-std::string ChromeContentClient::GetProcessTypeNameInEnglish(int type) {
- DCHECK(false) << "Unknown child process type!";
- return "Unknown";
-}
« no previous file with comments | « chrome/common/chrome_content_client.cc ('k') | chrome/common/secure_origin_whitelist.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698