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

Unified Diff: webkit/appcache/appcache.cc

Issue 3529009: Fix http/tests/appcache/foreign-fallback.html (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 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: webkit/appcache/appcache.cc
===================================================================
--- webkit/appcache/appcache.cc (revision 64524)
+++ webkit/appcache/appcache.cc (working copy)
@@ -70,6 +70,16 @@
return (it != entries_.end()) ? &(it->second) : NULL;
}
+GURL AppCache::GetFallbackEntryUrl(const GURL& namespace_url) const {
+ size_t count = fallback_namespaces_.size();
+ for (size_t i = 0; i < count; ++i) {
+ if (fallback_namespaces_[i].first == namespace_url)
+ return fallback_namespaces_[i].second;
+ }
+ NOTREACHED();
+ return GURL();
+}
+
namespace {
bool SortByLength(
const FallbackNamespace& lhs, const FallbackNamespace& rhs) {

Powered by Google App Engine
This is Rietveld 408576698