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

Side by Side Diff: ios/web/web_state/ui/wk_web_view_configuration_provider.mm

Issue 1423483004: Updated TODO(shreyasv) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "ios/web/web_state/ui/wk_web_view_configuration_provider.h" 5 #import "ios/web/web_state/ui/wk_web_view_configuration_provider.h"
6 6
7 #import <Foundation/Foundation.h> 7 #import <Foundation/Foundation.h>
8 #import <objc/runtime.h> 8 #import <objc/runtime.h>
9 #import <WebKit/WebKit.h> 9 #import <WebKit/WebKit.h>
10 10
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 #if !defined(NDEBUG) || !defined(DCHECK_ALWAYS_ON) // Matches DCHECK_IS_ON. 180 #if !defined(NDEBUG) || !defined(DCHECK_ALWAYS_ON) // Matches DCHECK_IS_ON.
181 base::WeakNSObject<id> weak_configuration(configuration_); 181 base::WeakNSObject<id> weak_configuration(configuration_);
182 base::WeakNSObject<id> weak_router(router_); 182 base::WeakNSObject<id> weak_router(router_);
183 base::WeakNSObject<id> weak_process_pool([configuration_ processPool]); 183 base::WeakNSObject<id> weak_process_pool([configuration_ processPool]);
184 #endif // !defined(NDEBUG) || defined(DCHECK_ALWAYS_ON) 184 #endif // !defined(NDEBUG) || defined(DCHECK_ALWAYS_ON)
185 configuration_.reset(); 185 configuration_.reset();
186 router_.reset(); 186 router_.reset();
187 // Make sure that no one retains configuration, router, processPool. 187 // Make sure that no one retains configuration, router, processPool.
188 DCHECK(!weak_configuration); 188 DCHECK(!weak_configuration);
189 DCHECK(!weak_router); 189 DCHECK(!weak_router);
190 // TODO(shreyasv): Enable this DCHECK (crbug.com/522672). 190 // TODO(crbug.com/522672): Enable this DCHECK.
191 // DCHECK(!weak_process_pool); 191 // DCHECK(!weak_process_pool);
192 } 192 }
193 193
194 } // namespace web 194 } // namespace web
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698