Title: [197532] trunk/Source/WebKit2
- Revision
- 197532
- Author
- gyuyoung....@webkit.org
- Date
- 2016-03-03 16:54:21 -0800 (Thu, 03 Mar 2016)
Log Message
Use std::make_unique<> when creating std::unique_ptr<>
https://bugs.webkit.org/show_bug.cgi?id=154574
Reviewed by Darin Adler.
* NetworkProcess/cache/NetworkCacheStatistics.cpp:
(WebKit::NetworkCache::Statistics::open):
* NetworkProcess/cache/NetworkCacheStatistics.h:
* WebProcess/WebCoreSupport/WebChromeClient.cpp:
(WebKit::WebChromeClient::createColorChooser):
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (197531 => 197532)
--- trunk/Source/WebKit2/ChangeLog 2016-03-04 00:47:55 UTC (rev 197531)
+++ trunk/Source/WebKit2/ChangeLog 2016-03-04 00:54:21 UTC (rev 197532)
@@ -1,3 +1,16 @@
+2016-03-03 Gyuyoung Kim <gyuyoung....@webkit.org>
+
+ Use std::make_unique<> when creating std::unique_ptr<>
+ https://bugs.webkit.org/show_bug.cgi?id=154574
+
+ Reviewed by Darin Adler.
+
+ * NetworkProcess/cache/NetworkCacheStatistics.cpp:
+ (WebKit::NetworkCache::Statistics::open):
+ * NetworkProcess/cache/NetworkCacheStatistics.h:
+ * WebProcess/WebCoreSupport/WebChromeClient.cpp:
+ (WebKit::WebChromeClient::createColorChooser):
+
2016-03-03 Alex Christensen <achristen...@webkit.org>
Move SPI to CFNetworkSPI.h
Modified: trunk/Source/WebKit2/NetworkProcess/cache/NetworkCacheStatistics.cpp (197531 => 197532)
--- trunk/Source/WebKit2/NetworkProcess/cache/NetworkCacheStatistics.cpp 2016-03-04 00:47:55 UTC (rev 197531)
+++ trunk/Source/WebKit2/NetworkProcess/cache/NetworkCacheStatistics.cpp 2016-03-04 00:54:21 UTC (rev 197532)
@@ -78,7 +78,7 @@
ASSERT(RunLoop::isMain());
String databasePath = WebCore::pathByAppendingComponent(cachePath, StatisticsDatabaseName);
- return std::unique_ptr<Statistics>(new Statistics(databasePath));
+ return std::make_unique<Statistics>(databasePath);
}
Statistics::Statistics(const String& databasePath)
Modified: trunk/Source/WebKit2/NetworkProcess/cache/NetworkCacheStatistics.h (197531 => 197532)
--- trunk/Source/WebKit2/NetworkProcess/cache/NetworkCacheStatistics.h 2016-03-04 00:47:55 UTC (rev 197531)
+++ trunk/Source/WebKit2/NetworkProcess/cache/NetworkCacheStatistics.h 2016-03-04 00:54:21 UTC (rev 197532)
@@ -44,6 +44,7 @@
class Statistics {
public:
static std::unique_ptr<Statistics> open(const String& cachePath);
+ explicit Statistics(const String& databasePath);
void clear();
@@ -55,8 +56,6 @@
void recordRevalidationSuccess(uint64_t webPageID, const Key&, const WebCore::ResourceRequest&);
private:
- explicit Statistics(const String& databasePath);
-
WorkQueue& serialBackgroundIOQueue() { return m_serialBackgroundIOQueue.get(); }
void initialize(const String& databasePath);
Modified: trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebChromeClient.cpp (197531 => 197532)
--- trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebChromeClient.cpp 2016-03-04 00:47:55 UTC (rev 197531)
+++ trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebChromeClient.cpp 2016-03-04 00:54:21 UTC (rev 197532)
@@ -701,7 +701,7 @@
#if ENABLE(INPUT_TYPE_COLOR)
std::unique_ptr<ColorChooser> WebChromeClient::createColorChooser(ColorChooserClient* client, const Color& initialColor)
{
- return std::unique_ptr<WebColorChooser>(new WebColorChooser(m_page, client, initialColor));
+ return std::make_unique<WebColorChooser>(m_page, client, initialColor);
}
#endif
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes