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

Side by Side Diff: chrome/test/webdriver/webdriver_session.cc

Issue 21030009: Make element removal methods in DictionaryValue and ListValue take scoped_ptr's as outparams. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 7 years, 4 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 | Annotate | Revision Log
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 "chrome/test/webdriver/webdriver_session.h" 5 #include "chrome/test/webdriver/webdriver_session.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 RunSessionTask(base::Bind( 553 RunSessionTask(base::Bind(
554 &Automation::MouseDoubleClickDeprecated, 554 &Automation::MouseDoubleClickDeprecated,
555 base::Unretained(automation_.get()), 555 base::Unretained(automation_.get()),
556 current_target_.view_id, 556 current_target_.view_id,
557 mouse_position_, 557 mouse_position_,
558 &error)); 558 &error));
559 } 559 }
560 return error; 560 return error;
561 } 561 }
562 562
563 Error* Session::GetCookies(const std::string& url, base::ListValue** cookies) { 563 Error* Session::GetCookies(const std::string& url,
564 scoped_ptr<base::ListValue>* cookies) {
564 Error* error = NULL; 565 Error* error = NULL;
565 RunSessionTask(base::Bind( 566 RunSessionTask(base::Bind(
566 &Automation::GetCookies, 567 &Automation::GetCookies,
567 base::Unretained(automation_.get()), 568 base::Unretained(automation_.get()),
568 url, 569 url,
569 cookies, 570 cookies,
570 &error)); 571 &error));
571 return error; 572 return error;
572 } 573 }
573 574
(...skipping 1363 matching lines...) Expand 10 before | Expand all | Expand 10 after
1937 !iter.IsAtEnd(); iter.Advance()) { 1938 !iter.IsAtEnd(); iter.Advance()) {
1938 Error* error = SetPreference(iter.key(), false /* is_user_pref */, 1939 Error* error = SetPreference(iter.key(), false /* is_user_pref */,
1939 iter.value().DeepCopy()); 1940 iter.value().DeepCopy());
1940 if (error) 1941 if (error)
1941 return error; 1942 return error;
1942 } 1943 }
1943 return NULL; 1944 return NULL;
1944 } 1945 }
1945 1946
1946 } // namespace webdriver 1947 } // namespace webdriver
OLDNEW
« no previous file with comments | « chrome/test/webdriver/webdriver_session.h ('k') | chromeos/network/onc/onc_certificate_importer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698