Remove support for specifying version on command line.
[chromium-blink-merge.git] / ui / base / resource / resource_bundle_android.cc
blobb1942696603bd1d743799e08d3277e9c6cd1a3a1
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ui/base/resource/resource_bundle.h"
7 #include <string>
9 #include "base/file_util.h"
10 #include "base/files/file_path.h"
11 #include "base/logging.h"
12 #include "base/path_service.h"
13 #include "base/strings/stringprintf.h"
14 #include "ui/base/resource/resource_handle.h"
15 #include "ui/base/ui_base_paths.h"
17 namespace ui {
19 void ResourceBundle::LoadCommonResources() {
20 base::FilePath path;
21 PathService::Get(ui::DIR_RESOURCE_PAKS_ANDROID, &path);
22 AddDataPackFromPath(path.AppendASCII("chrome_100_percent.pak"),
23 SCALE_FACTOR_100P);
26 gfx::Image& ResourceBundle::GetNativeImageNamed(int resource_id, ImageRTL rtl) {
27 // Flipped image is not used on Android.
28 DCHECK_EQ(rtl, RTL_DISABLED);
29 return GetImageNamed(resource_id);