Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3183)

Unified Diff: content/shell/app/shell_main_delegate.cc

Issue 109273002: Convert base::MemoryMappedFile to use File instead of PlatformFile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Posix GetSize Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/shell/app/shell_main_delegate.cc
diff --git a/content/shell/app/shell_main_delegate.cc b/content/shell/app/shell_main_delegate.cc
index 9966c4a88677b4e5d6ced94be240bd44a3ed6382..9867be78e750192913aa19e313722f952280a61a 100644
--- a/content/shell/app/shell_main_delegate.cc
+++ b/content/shell/app/shell_main_delegate.cc
@@ -259,9 +259,10 @@ void ShellMainDelegate::InitializeResourceBundle() {
int pak_fd =
base::GlobalDescriptors::GetInstance()->MaybeGet(kShellPakDescriptor);
if (pak_fd != base::kInvalidPlatformFileValue) {
- ui::ResourceBundle::InitSharedInstanceWithPakFile(pak_fd, false);
+ ui::ResourceBundle::InitSharedInstanceWithPakFile(base::File(pak_fd),
+ false);
ResourceBundle::GetSharedInstance().AddDataPackFromFile(
- pak_fd, ui::SCALE_FACTOR_100P);
+ base::File(pak_fd), ui::SCALE_FACTOR_100P);
return;
}
#endif

Powered by Google App Engine
This is Rietveld 408576698