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

Unified Diff: services/shell/public/cpp/initialize_base_and_icu.cc

Issue 1978083004: Don't link application support into shell client library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gyp Created 4 years, 7 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 | « services/shell/public/cpp/BUILD.gn ('k') | services/shell/public/cpp/lib/initialize_base_and_icu.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/public/cpp/initialize_base_and_icu.cc
diff --git a/services/shell/public/cpp/initialize_base_and_icu.cc b/services/shell/public/cpp/initialize_base_and_icu.cc
deleted file mode 100644
index 4277f4f46f9663cd056d85e0b8937dc02373c2ae..0000000000000000000000000000000000000000
--- a/services/shell/public/cpp/initialize_base_and_icu.cc
+++ /dev/null
@@ -1,52 +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.
-
-// This file declares a raw symbol and should be included only once in a
-// certain binary target. This needs to be run before we raise the sandbox,
-// which means that it can't use mojo. Our runners will dig around in the
-// symbol table and run this before the mojo system is initialized.
-
-#include <stdint.h>
-
-#include <memory>
-
-#include "base/files/file.h"
-#include "base/i18n/icu_util.h"
-#include "base/rand_util.h"
-#include "base/sys_info.h"
-#include "mojo/public/c/system/types.h"
-
-#if !defined(OS_ANDROID)
-#include "third_party/icu/source/i18n/unicode/timezone.h"
-#endif
-
-extern "C" {
-#if defined(WIN32)
-__declspec(dllexport) void __cdecl
-#else
-void __attribute__((visibility("default")))
-#endif
-InitializeBase(const uint8_t* icu_data) {
- base::RandUint64();
- base::SysInfo::AmountOfPhysicalMemory();
- base::SysInfo::NumberOfProcessors();
-#if defined(OS_POSIX) && !defined(OS_MACOSX)
- base::SysInfo::MaxSharedMemorySize();
-#endif
-
- // Initialize core ICU. We must perform the full initialization before we
- // initialize icu::TimeZone subsystem because otherwise ICU gets in a state
- // where the timezone data is disconnected from the locale data which can
- // cause crashes.
- CHECK(base::i18n::InitializeICUFromRawMemory(icu_data));
-
-#if !defined(OS_ANDROID)
- // ICU DateFormat class (used in base/time_format.cc) needs to get the
- // Olson timezone ID by accessing the zoneinfo files on disk. After
- // TimeZone::createDefault is called once here, the timezone ID is
- // cached and there's no more need to access the file system.
- std::unique_ptr<icu::TimeZone> zone(icu::TimeZone::createDefault());
-#endif
-}
-}
« no previous file with comments | « services/shell/public/cpp/BUILD.gn ('k') | services/shell/public/cpp/lib/initialize_base_and_icu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698