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

Side by Side Diff: chrome/test/webdriver/commands/browser_connection_commands.cc

Issue 7649006: more changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix another typo Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/commands/browser_connection_commands.h" 5 #include "chrome/test/webdriver/commands/browser_connection_commands.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "chrome/test/webdriver/commands/response.h" 9 #include "chrome/test/webdriver/commands/response.h"
10 #include "chrome/test/webdriver/session.h" 10 #include "chrome/test/webdriver/session.h"
(...skipping 12 matching lines...) Expand all
23 return true; 23 return true;
24 } 24 }
25 25
26 void BrowserConnectionCommand::ExecuteGet(Response* const response) { 26 void BrowserConnectionCommand::ExecuteGet(Response* const response) {
27 bool online; 27 bool online;
28 Error* error = session_->GetBrowserConnectionState(&online); 28 Error* error = session_->GetBrowserConnectionState(&online);
29 if (error) { 29 if (error) {
30 response->SetError(error); 30 response->SetError(error);
31 return; 31 return;
32 } 32 }
33 response->SetValue(new base::FundamentalValue(online)); 33 response->SetValue(base::BooleanValue::New(online));
34 } 34 }
35 35
36 } // namespace webdriver 36 } // namespace webdriver
OLDNEW
« no previous file with comments | « chrome/test/webdriver/commands/appcache_status_command.cc ('k') | chrome/test/webdriver/commands/create_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698