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

Side by Side Diff: content/browser/accessibility/accessibility_tree_formatter.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 "content/browser/accessibility/accessibility_tree_formatter.h" 5 #include "content/browser/accessibility/accessibility_tree_formatter.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 char* prefix) { 73 char* prefix) {
74 return UTF8ToUTF16(prefix) + base::IntToString16(node->renderer_id()) + 74 return UTF8ToUTF16(prefix) + base::IntToString16(node->renderer_id()) +
75 ASCIIToUTF16("\n"); 75 ASCIIToUTF16("\n");
76 } 76 }
77 77
78 void AccessibilityTreeFormatter::Initialize() {} 78 void AccessibilityTreeFormatter::Initialize() {}
79 79
80 // static 80 // static
81 const base::FilePath::StringType 81 const base::FilePath::StringType
82 AccessibilityTreeFormatter::GetActualFileSuffix() { 82 AccessibilityTreeFormatter::GetActualFileSuffix() {
83 return FILE_PATH_LITERAL(""); 83 return base::FilePath::StringType();
84 } 84 }
85 85
86 // static 86 // static
87 const base::FilePath::StringType 87 const base::FilePath::StringType
88 AccessibilityTreeFormatter::GetExpectedFileSuffix() { 88 AccessibilityTreeFormatter::GetExpectedFileSuffix() {
89 return FILE_PATH_LITERAL(""); 89 return base::FilePath::StringType();
90 } 90 }
91 91
92 // static 92 // static
93 const std::string AccessibilityTreeFormatter::GetAllowEmptyString() { 93 const std::string AccessibilityTreeFormatter::GetAllowEmptyString() {
94 return ""; 94 return std::string();
95 } 95 }
96 96
97 // static 97 // static
98 const std::string AccessibilityTreeFormatter::GetAllowString() { 98 const std::string AccessibilityTreeFormatter::GetAllowString() {
99 return ""; 99 return std::string();
100 } 100 }
101 101
102 // static 102 // static
103 const std::string AccessibilityTreeFormatter::GetDenyString() { 103 const std::string AccessibilityTreeFormatter::GetDenyString() {
104 return ""; 104 return std::string();
105 } 105 }
106 #endif 106 #endif
107 107
108 void AccessibilityTreeFormatter::SetFilters( 108 void AccessibilityTreeFormatter::SetFilters(
109 const std::vector<Filter>& filters) { 109 const std::vector<Filter>& filters) {
110 filters_ = filters; 110 filters_ = filters;
111 } 111 }
112 112
113 bool AccessibilityTreeFormatter::MatchesFilters( 113 bool AccessibilityTreeFormatter::MatchesFilters(
114 const string16& text, bool default_result) const { 114 const string16& text, bool default_result) const {
(...skipping 25 matching lines...) Expand all
140 if (!line_.empty()) 140 if (!line_.empty())
141 line_ += ASCIIToUTF16(" "); 141 line_ += ASCIIToUTF16(" ");
142 line_ += attr; 142 line_ += attr;
143 } 143 }
144 144
145 string16 AccessibilityTreeFormatter::FinishLine() { 145 string16 AccessibilityTreeFormatter::FinishLine() {
146 return line_; 146 return line_;
147 } 147 }
148 148
149 } // namespace content 149 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698