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

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

Issue 5581008: Add a new GetInstance() method for singleton classes, take 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/session_with_id.h" 5 #include "chrome/test/webdriver/commands/session_with_id.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 #include <string> 8 #include <string>
9 9
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 23 matching lines...) Expand all
34 temp_value->SetString(std::string("platform"), std::string("unknown")); 34 temp_value->SetString(std::string("platform"), std::string("unknown"));
35 #endif 35 #endif
36 36
37 temp_value->SetBoolean(std::string("javascriptEnabled"), true); 37 temp_value->SetBoolean(std::string("javascriptEnabled"), true);
38 38
39 response->set_status(kSuccess); 39 response->set_status(kSuccess);
40 response->set_value(temp_value); 40 response->set_value(temp_value);
41 } 41 }
42 42
43 void SessionWithID::ExecuteDelete(Response* const response) { 43 void SessionWithID::ExecuteDelete(Response* const response) {
44 Singleton<SessionManager>::get()->Delete(session_->id()); 44 SessionManager::GetInstance()->Delete(session_->id());
45 response->set_status(kSuccess); 45 response->set_status(kSuccess);
46 } 46 }
47 47
48 } // namespace webdriver 48 } // namespace webdriver
49 49
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698