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

Unified Diff: components/ui_devtools/string_util.h

Issue 2899783002: Move DevTools out of ash and turn it to a component. (Closed)
Patch Set: add README.md Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/ui_devtools/inspector_protocol_config.json ('k') | components/ui_devtools/string_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ui_devtools/string_util.h
diff --git a/components/ui_devtools/string_util.h b/components/ui_devtools/string_util.h
index d08b8b6f22f68474b50ba3115e63e129d4e8e7bc..8f12102f406c84b8c5b3843cb2a6fe187dccf706 100644
--- a/components/ui_devtools/string_util.h
+++ b/components/ui_devtools/string_util.h
@@ -10,8 +10,7 @@
#include "base/json/json_reader.h"
#include "base/strings/string_number_conversions.h"
-namespace ui {
-namespace devtools {
+namespace ui_devtools {
using String = std::string;
@@ -28,9 +27,7 @@ class CustomStringBuilder {
void reserveCapacity(std::size_t size) { s_.reserve(size); }
void append(const String& s) { s_ += s; }
void append(char c) { s_ += c; }
- void append(const char* data, unsigned int length) {
- s_.append(data, length);
- }
+ void append(const char* data, size_t length) { s_.append(data, length); }
String toString() { return s_; }
};
@@ -76,7 +73,6 @@ class StringUtil {
};
} // namespace protocol
-} // namespace devtools
-} // namespace ui
+} // namespace ui_devtools
#endif // COMPONENTS_UI_DEVTOOLS_STRING_UTIL_H_
« no previous file with comments | « components/ui_devtools/inspector_protocol_config.json ('k') | components/ui_devtools/string_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698