Fix compile error.

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@613 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2012-05-02 15:56:15 +00:00
parent 10a336e500
commit 4158d13cce
1 changed files with 6 additions and 3 deletions

View File

@ -23,6 +23,7 @@
#include "content/public/common/content_switches.h" #include "content/public/common/content_switches.h"
#include "content/public/common/main_function_params.h" #include "content/public/common/main_function_params.h"
#include "ui/base/resource/resource_bundle.h" #include "ui/base/resource/resource_bundle.h"
#include "ui/base/resource/resource_handle.h"
#include "ui/base/ui_base_paths.h" #include "ui/base/ui_base_paths.h"
#if defined(OS_WIN) #if defined(OS_WIN)
@ -373,8 +374,10 @@ void CefMainDelegate::InitializeResourceBundle() {
ui::ResourceBundle::InitSharedInstanceWithLocaleCef(locale); ui::ResourceBundle::InitSharedInstanceWithLocaleCef(locale);
CHECK(!loaded_locale.empty()) << "Locale could not be found for " << locale; CHECK(!loaded_locale.empty()) << "Locale could not be found for " << locale;
if (file_util::PathExists(pak_file)) if (file_util::PathExists(pak_file)) {
ResourceBundle::GetSharedInstance().AddDataPack(pak_file); ResourceBundle::GetSharedInstance().AddDataPack(
else pak_file, ui::ResourceHandle::kScaleFactor100x);
} else {
NOTREACHED() << "Could not load cef.pak"; NOTREACHED() << "Could not load cef.pak";
}
} }