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

Side by Side Diff: sync/notifier/sync_system_resources.cc

Issue 13145003: Rewrite std::string("") to std::string(), Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ugh Created 7 years, 8 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) 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 "sync/notifier/sync_system_resources.h" 5 #include "sync/notifier/sync_system_resources.h"
6 6
7 #include <cstdlib> 7 #include <cstdlib>
8 #include <cstring> 8 #include <cstring>
9 #include <string> 9 #include <string>
10 10
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 LOG(WARNING) << "ignoring call to ReadAllKeys(callback)"; 174 LOG(WARNING) << "ignoring call to ReadAllKeys(callback)";
175 } 175 }
176 176
177 void SyncStorage::SetSystemResources( 177 void SyncStorage::SetSystemResources(
178 invalidation::SystemResources* resources) { 178 invalidation::SystemResources* resources) {
179 // Do nothing. 179 // Do nothing.
180 } 180 }
181 181
182 void SyncStorage::RunAndDeleteWriteKeyCallback( 182 void SyncStorage::RunAndDeleteWriteKeyCallback(
183 invalidation::WriteKeyCallback* callback) { 183 invalidation::WriteKeyCallback* callback) {
184 callback->Run(invalidation::Status(invalidation::Status::SUCCESS, "")); 184 callback->Run(
185 invalidation::Status(invalidation::Status::SUCCESS, std::string()));
185 delete callback; 186 delete callback;
186 } 187 }
187 188
188 void SyncStorage::RunAndDeleteReadKeyCallback( 189 void SyncStorage::RunAndDeleteReadKeyCallback(
189 invalidation::ReadKeyCallback* callback, const std::string& value) { 190 invalidation::ReadKeyCallback* callback, const std::string& value) {
190 callback->Run(std::make_pair( 191 callback->Run(std::make_pair(
191 invalidation::Status(invalidation::Status::SUCCESS, ""), 192 invalidation::Status(invalidation::Status::SUCCESS, std::string()),
192 value)); 193 value));
193 delete callback; 194 delete callback;
194 } 195 }
195 196
196 SyncSystemResources::SyncSystemResources( 197 SyncSystemResources::SyncSystemResources(
197 scoped_ptr<notifier::PushClient> push_client, 198 scoped_ptr<notifier::PushClient> push_client,
198 StateWriter* state_writer) 199 StateWriter* state_writer)
199 : is_started_(false), 200 : is_started_(false),
200 logger_(new SyncLogger()), 201 logger_(new SyncLogger()),
201 internal_scheduler_(new SyncInvalidationScheduler()), 202 internal_scheduler_(new SyncInvalidationScheduler()),
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 246
246 SyncInvalidationScheduler* SyncSystemResources::internal_scheduler() { 247 SyncInvalidationScheduler* SyncSystemResources::internal_scheduler() {
247 return internal_scheduler_.get(); 248 return internal_scheduler_.get();
248 } 249 }
249 250
250 SyncInvalidationScheduler* SyncSystemResources::listener_scheduler() { 251 SyncInvalidationScheduler* SyncSystemResources::listener_scheduler() {
251 return listener_scheduler_.get(); 252 return listener_scheduler_.get();
252 } 253 }
253 254
254 } // namespace syncer 255 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/notifier/sync_invalidation_listener_unittest.cc ('k') | sync/notifier/sync_system_resources_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698