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

Unified Diff: webkit/browser/appcache/appcache_group.cc

Issue 22314003: NavigationController prototype Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: NavController prototype - chrome side Created 7 years, 3 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
« no previous file with comments | « webkit/browser/appcache/appcache_group.h ('k') | webkit/browser/appcache/appcache_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/browser/appcache/appcache_group.cc
diff --git a/webkit/browser/appcache/appcache_group.cc b/webkit/browser/appcache/appcache_group.cc
index e467516d03126435a00c3aa4995f8ddf35b39071..b269414ab8a58c32012178c19f34b0323169eb3a 100644
--- a/webkit/browser/appcache/appcache_group.cc
+++ b/webkit/browser/appcache/appcache_group.cc
@@ -158,6 +158,10 @@ void AppCacheGroup::StartUpdateWithNewMasterEntry(
if (is_in_dtor_)
return;
+ // Hackery for 'registerController'
+ if (IsFakeNavControllerGroup())
+ return;
+
if (!update_job_)
update_job_ = new AppCacheUpdateJob(storage_->service(), this);
@@ -170,6 +174,18 @@ void AppCacheGroup::StartUpdateWithNewMasterEntry(
}
}
+ // Hackery for registerController
+void AppCacheGroup::StartUpdateWithFakeManifest(Manifest* manifest) {
+ DCHECK(!is_obsolete() && !is_being_deleted());
+ if (is_in_dtor_)
+ return;
+
+ if (!update_job_) {
+ update_job_ = new AppCacheUpdateJob(storage_->service(), this);
+ update_job_->StartUpdateWithFakeManifest(manifest);
+ }
+}
+
void AppCacheGroup::CancelUpdate() {
if (update_job_) {
delete update_job_;
« no previous file with comments | « webkit/browser/appcache/appcache_group.h ('k') | webkit/browser/appcache/appcache_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698