void LayoutTestController::setIconDatabaseEnabled(bool enabled) { WebKitIconDatabase* database = webkit_get_icon_database(); if (enabled) { GOwnPtr<gchar> iconDatabasePath(g_build_filename(g_get_tmp_dir(), "DumpRenderTree", "icondatabase", NULL)); webkit_icon_database_set_path(database, iconDatabasePath.get()); } else webkit_icon_database_set_path(database, 0); }
void TestRunner::setIconDatabaseEnabled(bool enabled) { WebKitIconDatabase* database = webkit_get_icon_database(); if (enabled) { GUniquePtr<gchar> iconDatabasePath(g_build_filename(g_get_tmp_dir(), "DumpRenderTree", "icondatabase", nullptr)); webkit_icon_database_set_path(database, iconDatabasePath.get()); } else webkit_icon_database_set_path(database, 0); }