diff options
Diffstat (limited to 'chromium/content/common/unique_name_helper.cc')
-rw-r--r-- | chromium/content/common/unique_name_helper.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chromium/content/common/unique_name_helper.cc b/chromium/content/common/unique_name_helper.cc index 1664eac9b8f..2e833638fdc 100644 --- a/chromium/content/common/unique_name_helper.cc +++ b/chromium/content/common/unique_name_helper.cc @@ -312,11 +312,11 @@ void UniqueNameHelper::PreserveStableUniqueNameForTesting() { } std::string UniqueNameHelper::ExtractStableNameForTesting( - const std::string& unique_name) { + base::StringPiece unique_name) { size_t i = unique_name.rfind(kDynamicFrameMarker); if (i == std::string::npos) - return unique_name; - return unique_name.substr(0, i); + return unique_name.as_string(); + return unique_name.substr(0, i).as_string(); } } // namespace content |