Fix compile error.
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@613 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
10a336e500
commit
4158d13cce
|
@ -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";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue