diff options
author | vaibhav1.a <vaibhav1.a@samsung.com> | 2015-05-26 22:45:43 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-27 05:46:13 +0000 |
commit | d73326857b0df7891db6929403da1372a61f005a (patch) | |
tree | db579fc3741c116bb9417ce3e43b52696bc91e77 | |
parent | 796417e50f2e8b1a389e28ff62768b03cca982a6 (diff) | |
download | chromium_src-d73326857b0df7891db6929403da1372a61f005a.zip chromium_src-d73326857b0df7891db6929403da1372a61f005a.tar.gz chromium_src-d73326857b0df7891db6929403da1372a61f005a.tar.bz2 |
Subsituting pattern ScopedVector push_back.(ptr.release()) with push_back(ptr.Pass()) in extensions/renderer
BUG=457697
Review URL: https://codereview.chromium.org/1145073003
Cr-Commit-Position: refs/heads/master@{#331537}
-rw-r--r-- | AUTHORS | 1 | ||||
-rw-r--r-- | extensions/renderer/script_injection_manager.cc | 4 | ||||
-rw-r--r-- | extensions/renderer/user_script_set.cc | 4 |
3 files changed, 5 insertions, 4 deletions
@@ -536,6 +536,7 @@ Torsten Kurbad <google@tk-webart.de> Trevor Perrin <unsafe@trevp.net> U. Artie Eoff <ullysses.a.eoff@intel.com> Umar Hansa <umar.hansa@gmail.com> +Vaibhav Agrawal <vaibhav1.a@samsung.com> Vamshikrishna Yellenki <vamshi@motorola.com> Vani Hegde <vani.hegde@samsung.com> Vartul Katiyar <vartul.k@samsung.com> diff --git a/extensions/renderer/script_injection_manager.cc b/extensions/renderer/script_injection_manager.cc index d5fe072..f758b95 100644 --- a/extensions/renderer/script_injection_manager.cc +++ b/extensions/renderer/script_injection_manager.cc @@ -379,10 +379,10 @@ void ScriptInjectionManager::TryToInject( scripts_run_info, this)) { case ScriptInjection::INJECTION_WAITING: - pending_injections_.push_back(injection.release()); + pending_injections_.push_back(injection.Pass()); break; case ScriptInjection::INJECTION_BLOCKED: - running_injections_.push_back(injection.release()); + running_injections_.push_back(injection.Pass()); break; case ScriptInjection::INJECTION_FINISHED: break; diff --git a/extensions/renderer/user_script_set.cc b/extensions/renderer/user_script_set.cc index 929c017..01e8a5a 100644 --- a/extensions/renderer/user_script_set.cc +++ b/extensions/renderer/user_script_set.cc @@ -82,7 +82,7 @@ void UserScriptSet::GetInjections( document_url, false /* is_declarative */); if (injection.get()) - injections->push_back(injection.release()); + injections->push_back(injection.Pass()); } } @@ -149,7 +149,7 @@ bool UserScriptSet::UpdateUserScripts(base::SharedMemoryHandle shared_memory, continue; } - scripts_.push_back(script.release()); + scripts_.push_back(script.Pass()); } FOR_EACH_OBSERVER(Observer, |