blob: 5c8d598d71d6e0a1bf1b5f27d103253966d0a03d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// 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 "base/path_service.h"
#include "ui/base/ui_base_paths.h"
namespace {
FilePath GetResourcesPakFilePath(const std::string& pak_name) {
FilePath path;
if (PathService::Get(base::DIR_MODULE, &path))
return path.AppendASCII(pak_name.c_str());
return FilePath();
}
} // namespace
namespace ui {
void ResourceBundle::LoadCommonResources() {
AddDataPack(GetResourcesPakFilePath("chrome.pak"));
AddDataPack(GetResourcesPakFilePath("theme_resources_standard.pak"));
AddDataPack(GetResourcesPakFilePath("ui_resources_standard.pak"));
}
} // namespace ui
|