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

Side by Side Diff: chrome/browser/google/google_update_settings_posix.cc

Issue 1551503002: Convert Pass()→std::move() in //chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
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/installer/util/google_update_settings.h" 5 #include "chrome/installer/util/google_update_settings.h"
6 6
7 #include "base/files/file_util.h" 7 #include "base/files/file_util.h"
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // static 95 // static
96 // TODO(gab): Implement storing/loading for all ClientInfo fields on POSIX. 96 // TODO(gab): Implement storing/loading for all ClientInfo fields on POSIX.
97 scoped_ptr<metrics::ClientInfo> GoogleUpdateSettings::LoadMetricsClientInfo() { 97 scoped_ptr<metrics::ClientInfo> GoogleUpdateSettings::LoadMetricsClientInfo() {
98 scoped_ptr<metrics::ClientInfo> client_info(new metrics::ClientInfo); 98 scoped_ptr<metrics::ClientInfo> client_info(new metrics::ClientInfo);
99 99
100 base::AutoLock lock(g_posix_client_id_lock.Get()); 100 base::AutoLock lock(g_posix_client_id_lock.Get());
101 if (g_posix_client_id.Get().empty()) 101 if (g_posix_client_id.Get().empty())
102 return scoped_ptr<metrics::ClientInfo>(); 102 return scoped_ptr<metrics::ClientInfo>();
103 client_info->client_id = g_posix_client_id.Get(); 103 client_info->client_id = g_posix_client_id.Get();
104 104
105 return client_info.Pass(); 105 return client_info;
106 } 106 }
107 107
108 // static 108 // static
109 // TODO(gab): Implement storing/loading for all ClientInfo fields on POSIX. 109 // TODO(gab): Implement storing/loading for all ClientInfo fields on POSIX.
110 void GoogleUpdateSettings::StoreMetricsClientInfo( 110 void GoogleUpdateSettings::StoreMetricsClientInfo(
111 const metrics::ClientInfo& client_info) { 111 const metrics::ClientInfo& client_info) {
112 // Make sure that user has consented to send crashes. 112 // Make sure that user has consented to send crashes.
113 if (!GoogleUpdateSettings::GetCollectStatsConsent()) 113 if (!GoogleUpdateSettings::GetCollectStatsConsent())
114 return; 114 return;
115 115
(...skipping 11 matching lines...) Expand all
127 127
128 // static 128 // static
129 int GoogleUpdateSettings::GetLastRunTime() { 129 int GoogleUpdateSettings::GetLastRunTime() {
130 return -1; 130 return -1;
131 } 131 }
132 132
133 // static 133 // static
134 bool GoogleUpdateSettings::SetLastRunTime() { 134 bool GoogleUpdateSettings::SetLastRunTime() {
135 return false; 135 return false;
136 } 136 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698