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

Side by Side Diff: ios/web/web_state/web_state_delegate.mm

Issue 2605913002: Fix include import in ios/web (Closed)
Patch Set: Created 3 years, 11 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/public/web_state/web_state_delegate.h" 5 #include "ios/web/public/web_state/web_state_delegate.h"
6 6
7 #import "ios/web/public/web_state/web_state.h" 7 #import "ios/web/public/web_state/web_state.h"
8 8
9 namespace web { 9 namespace web {
10 10
11 WebStateDelegate::WebStateDelegate() {} 11 WebStateDelegate::WebStateDelegate() {}
12 12
13 WebStateDelegate::~WebStateDelegate() { 13 WebStateDelegate::~WebStateDelegate() {
14 while (!attached_states_.empty()) { 14 while (!attached_states_.empty()) {
15 WebState* web_state = *attached_states_.begin(); 15 WebState* web_state = *attached_states_.begin();
(...skipping 17 matching lines...) Expand all
33 DCHECK(attached_states_.find(source) == attached_states_.end()); 33 DCHECK(attached_states_.find(source) == attached_states_.end());
34 attached_states_.insert(source); 34 attached_states_.insert(source);
35 } 35 }
36 36
37 void WebStateDelegate::Detach(WebState* source) { 37 void WebStateDelegate::Detach(WebState* source) {
38 DCHECK(attached_states_.find(source) != attached_states_.end()); 38 DCHECK(attached_states_.find(source) != attached_states_.end());
39 attached_states_.erase(source); 39 attached_states_.erase(source);
40 } 40 }
41 41
42 } // web 42 } // web
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698