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

Unified Diff: Source/core/testing/Internals.cpp

Issue 386613002: FYI: Compile fixes when always using a local for method return value Base URL: https://chromium.googlesource.com/chromium/blink.git@idl-nullable-method-return-type
Patch Set: Created 6 years, 5 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
Index: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index 70af4c97bceadd7a32dffc764518b28a724d889e..dcd7d62af47914bc9de8be1e9b1edbb962a5cde7 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -1244,9 +1244,11 @@ int Internals::lastSpellCheckProcessedSequence(Document* document, ExceptionStat
return requester->lastProcessedSequence();
}
-Vector<AtomicString> Internals::userPreferredLanguages() const
+Vector<String> Internals::userPreferredLanguages() const
{
- return WebCore::userPreferredLanguages();
+ Vector<String> result;
+ result.appendVector(WebCore::userPreferredLanguages());
+ return result;
}
// Optimally, the bindings generator would pass a Vector<AtomicString> here but
@@ -1589,9 +1591,9 @@ Vector<String> Internals::consoleMessageArgumentCounts(Document* document) const
return result;
}
-Vector<unsigned long> Internals::setMemoryCacheCapacities(unsigned long minDeadBytes, unsigned long maxDeadBytes, unsigned long totalBytes)
+Vector<unsigned> Internals::setMemoryCacheCapacities(unsigned long minDeadBytes, unsigned long maxDeadBytes, unsigned long totalBytes)
{
- Vector<unsigned long> result;
+ Vector<unsigned> result;
result.append(memoryCache()->minDeadCapacity());
result.append(memoryCache()->maxDeadCapacity());
result.append(memoryCache()->capacity());

Powered by Google App Engine
This is Rietveld 408576698