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

Side by Side Diff: third_party/WebKit/Source/core/loader/EmptyClients.cpp

Issue 2494333002: Replace wrapUnique(new T(args)) by makeUnique<T>(args) in Blink (Closed)
Patch Set: Drop redundant WTF:: Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Eric Seidel <eric@webkit.org> 2 * Copyright (C) 2006 Eric Seidel <eric@webkit.org>
3 * Copyright (C) 2008, 2009, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2008, 2009, 2012 Apple Inc. All rights reserved.
4 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 return; 116 return;
117 page->frameHost().visualViewport().attachToLayerTree(layer); 117 page->frameHost().visualViewport().attachToLayerTree(layer);
118 } 118 }
119 119
120 String EmptyChromeClient::acceptLanguages() { 120 String EmptyChromeClient::acceptLanguages() {
121 return String(); 121 return String();
122 } 122 }
123 123
124 std::unique_ptr<WebFrameScheduler> EmptyChromeClient::createFrameScheduler( 124 std::unique_ptr<WebFrameScheduler> EmptyChromeClient::createFrameScheduler(
125 BlameContext*) { 125 BlameContext*) {
126 return wrapUnique(new EmptyFrameScheduler()); 126 return makeUnique<EmptyFrameScheduler>();
127 } 127 }
128 128
129 NavigationPolicy EmptyFrameLoaderClient::decidePolicyForNavigation( 129 NavigationPolicy EmptyFrameLoaderClient::decidePolicyForNavigation(
130 const ResourceRequest&, 130 const ResourceRequest&,
131 DocumentLoader*, 131 DocumentLoader*,
132 NavigationType, 132 NavigationType,
133 NavigationPolicy, 133 NavigationPolicy,
134 bool, 134 bool,
135 bool) { 135 bool) {
136 return NavigationPolicyIgnore; 136 return NavigationPolicyIgnore;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 return nullptr; 186 return nullptr;
187 } 187 }
188 188
189 std::unique_ptr<WebApplicationCacheHost> 189 std::unique_ptr<WebApplicationCacheHost>
190 EmptyFrameLoaderClient::createApplicationCacheHost( 190 EmptyFrameLoaderClient::createApplicationCacheHost(
191 WebApplicationCacheHostClient*) { 191 WebApplicationCacheHostClient*) {
192 return nullptr; 192 return nullptr;
193 } 193 }
194 194
195 } // namespace blink 195 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698