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

Side by Side Diff: chrome/browser/sync/notifier/chrome_system_resources.cc

Issue 3835002: base: Remove 'using' declaration of StringAppendV. (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: Created 10 years, 2 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 | « base/stringprintf.h ('k') | chrome/common/extensions/update_manifest.cc » ('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 (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/browser/sync/notifier/chrome_system_resources.h" 5 #include "chrome/browser/sync/notifier/chrome_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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 log_severity = logging::LOG_ERROR; 97 log_severity = logging::LOG_ERROR;
98 break; 98 break;
99 } 99 }
100 // We treat LOG(INFO) as VLOG(1). 100 // We treat LOG(INFO) as VLOG(1).
101 if ((log_severity >= logging::GetMinLogLevel()) && 101 if ((log_severity >= logging::GetMinLogLevel()) &&
102 ((log_severity != logging::LOG_INFO) || 102 ((log_severity != logging::LOG_INFO) ||
103 (1 <= logging::GetVlogLevelHelper(file, ::strlen(file))))) { 103 (1 <= logging::GetVlogLevelHelper(file, ::strlen(file))))) {
104 va_list ap; 104 va_list ap;
105 va_start(ap, format); 105 va_start(ap, format);
106 std::string result; 106 std::string result;
107 StringAppendV(&result, format, ap); 107 base::StringAppendV(&result, format, ap);
108 logging::LogMessage(file, line, log_severity).stream() << result; 108 logging::LogMessage(file, line, log_severity).stream() << result;
109 va_end(ap); 109 va_end(ap);
110 } 110 }
111 } 111 }
112 112
113 void ChromeSystemResources::RunAndDeleteStorageCallback( 113 void ChromeSystemResources::RunAndDeleteStorageCallback(
114 invalidation::StorageCallback* callback) { 114 invalidation::StorageCallback* callback) {
115 callback->Run(true); 115 callback->Run(true);
116 delete callback; 116 delete callback;
117 } 117 }
(...skipping 29 matching lines...) Expand all
147 return task_to_post; 147 return task_to_post;
148 } 148 }
149 149
150 void ChromeSystemResources::RunPostedTask(invalidation::Closure* task) { 150 void ChromeSystemResources::RunPostedTask(invalidation::Closure* task) {
151 DCHECK(non_thread_safe_.CalledOnValidThread()); 151 DCHECK(non_thread_safe_.CalledOnValidThread());
152 RunAndDeleteClosure(task); 152 RunAndDeleteClosure(task);
153 posted_tasks_.erase(task); 153 posted_tasks_.erase(task);
154 } 154 }
155 155
156 } // namespace sync_notifier 156 } // namespace sync_notifier
OLDNEW
« no previous file with comments | « base/stringprintf.h ('k') | chrome/common/extensions/update_manifest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698