Empty callback added to prevent crash for application cache delete all
authorw.basiak <w.basiak@samsung.com>
Tue, 27 May 2014 14:13:41 +0000 (16:13 +0200)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
Issue: CBWEBVIEW-317
Change-Id: I48cc96fc1b97246facda1f7cfb2d85f9d4f7e239

tizen_src/impl/eweb_context.cc

index b49fb0b..2b78ce4 100644 (file)
@@ -96,12 +96,16 @@ void SetProxyConfigCallbackOnIOThread(base::WaitableEvent* done,
   done->Signal();
 }
 
+void DeleteApplicationCacheCallback() {
+  // no implementation needed; callback is just to prevent segmentation fault caused by null callback
+}
+
 void DeleteApplicationCache(content::StoragePartition* partition) {
   const GURL storage_origin;
   const content::StoragePartition::OriginMatcherFunction origin_matcher;
   const base::Time begin;
   const base::Time end;
-  const base::Closure callback;
+  const base::Closure callback = base::Bind(&DeleteApplicationCacheCallback);
 
   // FIXME: M34 API change demands above values to be passed as arguments.
   //        For now, not sure how to get/set the values, so passing dummy values.