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

Side by Side Diff: content/plugin/webplugin_delegate_stub.cc

Issue 803813003: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 12 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/plugin/webplugin_delegate_stub.h" 5 #include "content/plugin/webplugin_delegate_stub.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 page_url_ = params.page_url; 168 page_url_ = params.page_url;
169 GetContentClient()->SetActiveURL(page_url_); 169 GetContentClient()->SetActiveURL(page_url_);
170 170
171 *transparent = false; 171 *transparent = false;
172 *result = false; 172 *result = false;
173 if (params.arg_names.size() != params.arg_values.size()) { 173 if (params.arg_names.size() != params.arg_values.size()) {
174 NOTREACHED(); 174 NOTREACHED();
175 return; 175 return;
176 } 176 }
177 177
178 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 178 const base::CommandLine& command_line =
179 *base::CommandLine::ForCurrentProcess();
179 base::FilePath path = 180 base::FilePath path =
180 command_line.GetSwitchValuePath(switches::kPluginPath); 181 command_line.GetSwitchValuePath(switches::kPluginPath);
181 182
182 webplugin_ = new WebPluginProxy(channel_.get(), 183 webplugin_ = new WebPluginProxy(channel_.get(),
183 instance_id_, 184 instance_id_,
184 page_url_, 185 page_url_,
185 params.host_render_view_routing_id); 186 params.host_render_view_routing_id);
186 delegate_ = WebPluginDelegateImpl::Create(webplugin_, path, mime_type_); 187 delegate_ = WebPluginDelegateImpl::Create(webplugin_, path, mime_type_);
187 if (delegate_) { 188 if (delegate_) {
188 if (delegate_->GetQuirks() & 189 if (delegate_->GetQuirks() &
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 static_cast<unsigned int>(params.post_data.size()), 441 static_cast<unsigned int>(params.post_data.size()),
441 Referrer(params.referrer, params.referrer_policy), 442 Referrer(params.referrer, params.referrer_policy),
442 params.notify_redirect, 443 params.notify_redirect,
443 params.is_plugin_src_load, 444 params.is_plugin_src_load,
444 channel_->renderer_id(), 445 channel_->renderer_id(),
445 params.render_frame_id, 446 params.render_frame_id,
446 webplugin_->host_render_view_routing_id()); 447 webplugin_->host_render_view_routing_id());
447 } 448 }
448 449
449 } // namespace content 450 } // namespace content
OLDNEW
« no previous file with comments | « content/plugin/webplugin_accelerated_surface_proxy_mac.cc ('k') | content/ppapi_plugin/ppapi_broker_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698