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

Side by Side Diff: base/stringprintf.h

Issue 12767006: [Cleanup] Remove StringPrintf from global namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, once more Created 7 years, 9 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 #ifndef BASE_STRINGPRINTF_H_ 5 #ifndef BASE_STRINGPRINTF_H_
6 #define BASE_STRINGPRINTF_H_ 6 #define BASE_STRINGPRINTF_H_
7 7
8 #include <stdarg.h> // va_list 8 #include <stdarg.h> // va_list
9 9
10 #include <string> 10 #include <string>
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 BASE_EXPORT void StringAppendV(std::string* dst, const char* format, va_list ap) 52 BASE_EXPORT void StringAppendV(std::string* dst, const char* format, va_list ap)
53 PRINTF_FORMAT(2, 0); 53 PRINTF_FORMAT(2, 0);
54 #if !defined(OS_ANDROID) 54 #if !defined(OS_ANDROID)
55 BASE_EXPORT void StringAppendV(std::wstring* dst, 55 BASE_EXPORT void StringAppendV(std::wstring* dst,
56 const wchar_t* format, va_list ap) 56 const wchar_t* format, va_list ap)
57 WPRINTF_FORMAT(2, 0); 57 WPRINTF_FORMAT(2, 0);
58 #endif 58 #endif
59 59
60 } // namespace base 60 } // namespace base
61 61
62 // Don't require the namespace for legacy code. New code should use "base::" or
63 // have its own using decl.
64 //
65 // TODO(brettw) remove these when calling code is converted.
66 using base::StringPrintf;
67
68 #endif // BASE_STRINGPRINTF_H_ 62 #endif // BASE_STRINGPRINTF_H_
OLDNEW
« no previous file with comments | « base/process_linux.cc ('k') | cc/base/worker_pool.cc » ('j') | ipc/ipc_message_utils.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698