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

Unified Diff: chrome/test/automation/dom_element_proxy.cc

Issue 4291001: Convert implicit scoped_refptr constructor calls to explicit ones, part 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/build
Patch Set: comments Created 10 years, 1 month 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
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | ipc/ipc_channel_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/automation/dom_element_proxy.cc
diff --git a/chrome/test/automation/dom_element_proxy.cc b/chrome/test/automation/dom_element_proxy.cc
index 894429feb5410c3cf3ad0908c167186c247dc0f6..8dce0730bd024e40a4cba295ff5949248cd5f981 100644
--- a/chrome/test/automation/dom_element_proxy.cc
+++ b/chrome/test/automation/dom_element_proxy.cc
@@ -109,8 +109,8 @@ bool DOMElementProxy::FindElements(const By& by,
return false;
}
for (size_t i = 0; i < element_handles.size(); i++) {
- elements->push_back(executor_->GetObjectProxy<DOMElementProxy>(
- element_handles[i]));
+ elements->push_back(make_scoped_refptr(
+ executor_->GetObjectProxy<DOMElementProxy>(element_handles[i])));
}
return true;
}
@@ -134,8 +134,8 @@ bool DOMElementProxy::WaitForVisibleElementCount(
}
if (static_cast<int>(element_handles.size()) == count) {
for (size_t i = 0; i < element_handles.size(); i++) {
- elements->push_back(executor_->GetObjectProxy<DOMElementProxy>(
- element_handles[i]));
+ elements->push_back(make_scoped_refptr(
+ executor_->GetObjectProxy<DOMElementProxy>(element_handles[i])));
}
}
return static_cast<int>(element_handles.size()) == count;
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | ipc/ipc_channel_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698