OLD | NEW |
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/chromedriver/session.h" | 5 #include "chrome/test/chromedriver/session.h" |
6 | 6 |
7 #include <list> | 7 #include <list> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 } | 114 } |
115 return std::string(); | 115 return std::string(); |
116 } | 116 } |
117 | 117 |
118 Session* GetThreadLocalSession() { | 118 Session* GetThreadLocalSession() { |
119 return lazy_tls_session.Pointer()->Get(); | 119 return lazy_tls_session.Pointer()->Get(); |
120 } | 120 } |
121 | 121 |
122 void SetThreadLocalSession(std::unique_ptr<Session> session) { | 122 void SetThreadLocalSession(std::unique_ptr<Session> session) { |
123 lazy_tls_session.Pointer()->Set(session.release()); | 123 lazy_tls_session.Pointer()->Set(session.release()); |
124 } | 124 } |
OLD | NEW |