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

Side by Side Diff: components/html_viewer/setup.cc

Issue 1179163002: Migrate callers of message_loop_proxy() to task_runner() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 years, 6 months 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 unified diff | Download patch
« no previous file with comments | « components/history/core/browser/history_service.cc ('k') | dbus/bus.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/html_viewer/setup.h" 5 #include "components/html_viewer/setup.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 resource_loader_.ReleaseFile(kResourceResourcesPak), 142 resource_loader_.ReleaseFile(kResourceResourcesPak),
143 base::MemoryMappedFile::Region::kWholeFile); 143 base::MemoryMappedFile::Region::kWholeFile);
144 // TODO(sky): why is this always using 100? 144 // TODO(sky): why is this always using 100?
145 ui::ResourceBundle::GetSharedInstance().AddDataPackFromFile( 145 ui::ResourceBundle::GetSharedInstance().AddDataPackFromFile(
146 resource_loader_.ReleaseFile(kResourceUIPak), ui::SCALE_FACTOR_100P); 146 resource_loader_.ReleaseFile(kResourceUIPak), ui::SCALE_FACTOR_100P);
147 } 147 }
148 148
149 compositor_thread_.Start(); 149 compositor_thread_.Start();
150 150
151 media_factory_.reset( 151 media_factory_.reset(
152 new MediaFactory(compositor_thread_.message_loop_proxy(), app_->shell())); 152 new MediaFactory(compositor_thread_.task_runner(), app_->shell()));
153 153
154 if (command_line->HasSwitch(kJavaScriptFlags)) { 154 if (command_line->HasSwitch(kJavaScriptFlags)) {
155 std::string flags(command_line->GetSwitchValueASCII(kJavaScriptFlags)); 155 std::string flags(command_line->GetSwitchValueASCII(kJavaScriptFlags));
156 v8::V8::SetFlagsFromString(flags.c_str(), static_cast<int>(flags.size())); 156 v8::V8::SetFlagsFromString(flags.c_str(), static_cast<int>(flags.size()));
157 } 157 }
158 } 158 }
159 159
160 } // namespace html_viewer 160 } // namespace html_viewer
OLDNEW
« no previous file with comments | « components/history/core/browser/history_service.cc ('k') | dbus/bus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698