Index: ui/base/resource/resource_bundle_android.cc |
diff --git a/ui/base/resource/resource_bundle_android.cc b/ui/base/resource/resource_bundle_android.cc |
deleted file mode 100644 |
index 9dc036eeded50c7ce4431733c5d5949e9d766463..0000000000000000000000000000000000000000 |
--- a/ui/base/resource/resource_bundle_android.cc |
+++ /dev/null |
@@ -1,47 +0,0 @@ |
-// Copyright (c) 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 "ui/base/resource/resource_bundle.h" |
- |
-#include <string> |
- |
-#include "base/android/jni_android.h" |
-#include "base/android/jni_string.h" |
-#include "base/files/file_path.h" |
-#include "base/files/file_util.h" |
-#include "base/logging.h" |
-#include "base/path_service.h" |
-#include "base/strings/stringprintf.h" |
-#include "jni/ResourceBundle_jni.h" |
-#include "ui/base/resource/resource_handle.h" |
-#include "ui/base/ui_base_paths.h" |
- |
-namespace ui { |
- |
-void ResourceBundle::LoadCommonResources() { |
- base::FilePath path; |
- PathService::Get(ui::DIR_RESOURCE_PAKS_ANDROID, &path); |
- AddDataPackFromPath(path.AppendASCII("chrome_100_percent.pak"), |
- SCALE_FACTOR_100P); |
-} |
- |
-gfx::Image& ResourceBundle::GetNativeImageNamed(int resource_id, ImageRTL rtl) { |
- // Flipped image is not used on Android. |
- DCHECK_EQ(rtl, RTL_DISABLED); |
- return GetImageNamed(resource_id); |
-} |
- |
-bool AssetContainedInApk(const std::string& filename) { |
- JNIEnv* env = base::android::AttachCurrentThread(); |
- return Java_ResourceBundle_assetContainedInApk( |
- env, |
- base::android::GetApplicationContext(), |
- base::android::ConvertUTF8ToJavaString(env, filename).obj()); |
-} |
- |
-bool RegisterResourceBundleAndroid(JNIEnv* env) { |
- return RegisterNativesImpl(env); |
-} |
- |
-} |