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

Side by Side Diff: remoting/base/service_urls.cc

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 years, 3 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
« no previous file with comments | « remoting/base/service_urls.h ('k') | remoting/client/jni/chromoting_jni_runtime.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "remoting/base/service_urls.h" 5 #include "remoting/base/service_urls.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 9
10 // Configurable service data. 10 // Configurable service data.
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 } 67 }
68 #endif // !defined(NDEBUG) 68 #endif // !defined(NDEBUG)
69 69
70 directory_hosts_url_ = directory_base_url_ + kDirectoryHostsSuffix; 70 directory_hosts_url_ = directory_base_url_ + kDirectoryHostsSuffix;
71 } 71 }
72 72
73 ServiceUrls::~ServiceUrls() { 73 ServiceUrls::~ServiceUrls() {
74 } 74 }
75 75
76 ServiceUrls* remoting::ServiceUrls::GetInstance() { 76 ServiceUrls* remoting::ServiceUrls::GetInstance() {
77 return Singleton<ServiceUrls>::get(); 77 return base::Singleton<ServiceUrls>::get();
78 } 78 }
79 79
80 const std::string& ServiceUrls::directory_base_url() const { 80 const std::string& ServiceUrls::directory_base_url() const {
81 return directory_base_url_; 81 return directory_base_url_;
82 } 82 }
83 83
84 const std::string& ServiceUrls::directory_hosts_url() const { 84 const std::string& ServiceUrls::directory_hosts_url() const {
85 return directory_hosts_url_; 85 return directory_hosts_url_;
86 } 86 }
87 87
(...skipping 15 matching lines...) Expand all
103 103
104 const std::string& ServiceUrls::directory_bot_jid() const { 104 const std::string& ServiceUrls::directory_bot_jid() const {
105 return directory_bot_jid_; 105 return directory_bot_jid_;
106 } 106 }
107 107
108 const std::string& ServiceUrls::gcd_jid() const { 108 const std::string& ServiceUrls::gcd_jid() const {
109 return directory_bot_jid_; 109 return directory_bot_jid_;
110 } 110 }
111 111
112 } // namespace remoting 112 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/base/service_urls.h ('k') | remoting/client/jni/chromoting_jni_runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698