Bringup error domain in Ewk_Error
authorzhaoze <zhaoze.zhou@partner.samsung.com>
Thu, 6 Nov 2014 22:38:21 +0000 (17:38 -0500)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
Fill out the domain value in Ewk_Error.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=8592
Reviewed by: Balazs Kelemen, SeungSeop Park

Change-Id: I37ae2424e32844eb7b93b39680b2d6f259690e68
Signed-off-by: zhaoze <zhaoze.zhou@partner.samsung.com>
tizen_src/impl/API/ewk_error_private.h

index 96b1a49..a3e56a1 100644 (file)
@@ -14,11 +14,13 @@ struct _Ewk_Error {
   Eina_Stringshare* description;
   Eina_Stringshare* domain;
 
-  _Ewk_Error(int error_code_in, const char* url_in, const char* description_in, const char* domain_in = NULL)
+  _Ewk_Error(int error_code_in, const char* url_in, const char* description_in)
       : error_code(error_code_in),
         url(eina_stringshare_add(url_in)),
         description(eina_stringshare_add(description_in)),
-        domain(eina_stringshare_add(domain_in)) {
+        // Chromium always reports "net" as error domain anyways,
+        // so we just hardcode it.
+        domain(eina_stringshare_add("net")) {
   }
 
   ~_Ewk_Error() {