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

Side by Side Diff: chrome/browser/renderer_context_menu/render_view_context_menu.cc

Issue 1551503002: Convert Pass()→std::move() in //chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "chrome/browser/renderer_context_menu/render_view_context_menu.h" 5 #include "chrome/browser/renderer_context_menu/render_view_context_menu.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <set> 10 #include <set>
(...skipping 1707 matching lines...) Expand 10 before | Expand all | Expand 10 after
1718 const GURL& url = params_.link_url; 1718 const GURL& url = params_.link_url;
1719 content::Referrer referrer = CreateReferrer(url, params_); 1719 content::Referrer referrer = CreateReferrer(url, params_);
1720 DownloadManager* dlm = 1720 DownloadManager* dlm =
1721 BrowserContext::GetDownloadManager(browser_context_); 1721 BrowserContext::GetDownloadManager(browser_context_);
1722 scoped_ptr<DownloadUrlParameters> dl_params( 1722 scoped_ptr<DownloadUrlParameters> dl_params(
1723 DownloadUrlParameters::FromWebContents(source_web_contents_, url)); 1723 DownloadUrlParameters::FromWebContents(source_web_contents_, url));
1724 dl_params->set_referrer(referrer); 1724 dl_params->set_referrer(referrer);
1725 dl_params->set_referrer_encoding(params_.frame_charset); 1725 dl_params->set_referrer_encoding(params_.frame_charset);
1726 dl_params->set_suggested_name(params_.suggested_filename); 1726 dl_params->set_suggested_name(params_.suggested_filename);
1727 dl_params->set_prompt(true); 1727 dl_params->set_prompt(true);
1728 dlm->DownloadUrl(dl_params.Pass()); 1728 dlm->DownloadUrl(std::move(dl_params));
1729 break; 1729 break;
1730 } 1730 }
1731 1731
1732 case IDC_CONTENT_CONTEXT_SAVEAVAS: 1732 case IDC_CONTENT_CONTEXT_SAVEAVAS:
1733 case IDC_CONTENT_CONTEXT_SAVEIMAGEAS: { 1733 case IDC_CONTENT_CONTEXT_SAVEIMAGEAS: {
1734 bool is_large_data_url = params_.has_image_contents && 1734 bool is_large_data_url = params_.has_image_contents &&
1735 params_.src_url.is_empty(); 1735 params_.src_url.is_empty();
1736 if (params_.media_type == WebContextMenuData::MediaTypeCanvas || 1736 if (params_.media_type == WebContextMenuData::MediaTypeCanvas ||
1737 (params_.media_type == WebContextMenuData::MediaTypeImage && 1737 (params_.media_type == WebContextMenuData::MediaTypeImage &&
1738 is_large_data_url)) { 1738 is_large_data_url)) {
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
2184 source_web_contents_->GetRenderViewHost()-> 2184 source_web_contents_->GetRenderViewHost()->
2185 ExecuteMediaPlayerActionAtLocation(location, action); 2185 ExecuteMediaPlayerActionAtLocation(location, action);
2186 } 2186 }
2187 2187
2188 void RenderViewContextMenu::PluginActionAt( 2188 void RenderViewContextMenu::PluginActionAt(
2189 const gfx::Point& location, 2189 const gfx::Point& location,
2190 const WebPluginAction& action) { 2190 const WebPluginAction& action) {
2191 source_web_contents_->GetRenderViewHost()-> 2191 source_web_contents_->GetRenderViewHost()->
2192 ExecutePluginActionAtLocation(location, action); 2192 ExecutePluginActionAtLocation(location, action);
2193 } 2193 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698