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

Side by Side Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerScriptCachedMetadataHandler.cpp

Issue 2668903003: Replace WTF::emptyString{16Bit}() with a static global (Closed)
Patch Set: Replace WTF::emptyString{16Bit}() with a static global Created 3 years, 10 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "modules/serviceworkers/ServiceWorkerScriptCachedMetadataHandler.h" 5 #include "modules/serviceworkers/ServiceWorkerScriptCachedMetadataHandler.h"
6 6
7 #include "core/workers/WorkerGlobalScope.h" 7 #include "core/workers/WorkerGlobalScope.h"
8 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h" 8 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h"
9 #include "platform/loader/fetch/CachedMetadata.h" 9 #include "platform/loader/fetch/CachedMetadata.h"
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 PassRefPtr<CachedMetadata> 55 PassRefPtr<CachedMetadata>
56 ServiceWorkerScriptCachedMetadataHandler::cachedMetadata( 56 ServiceWorkerScriptCachedMetadataHandler::cachedMetadata(
57 uint32_t dataTypeID) const { 57 uint32_t dataTypeID) const {
58 if (!m_cachedMetadata || m_cachedMetadata->dataTypeID() != dataTypeID) 58 if (!m_cachedMetadata || m_cachedMetadata->dataTypeID() != dataTypeID)
59 return nullptr; 59 return nullptr;
60 return m_cachedMetadata.get(); 60 return m_cachedMetadata.get();
61 } 61 }
62 62
63 String ServiceWorkerScriptCachedMetadataHandler::encoding() const { 63 String ServiceWorkerScriptCachedMetadataHandler::encoding() const {
64 return emptyString(); 64 return emptyString;
65 } 65 }
66 66
67 } // namespace blink 67 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698