Chromium Code Reviews| Index: components/html_viewer/html_document.cc |
| diff --git a/components/html_viewer/html_document.cc b/components/html_viewer/html_document.cc |
| index 39472d4ccc55b3bc82b459f87b87aa2a280bb49f..78abe55664f55507f6482b7ae49fe14058cb98c6 100644 |
| --- a/components/html_viewer/html_document.cc |
| +++ b/components/html_viewer/html_document.cc |
| @@ -1,4 +1,4 @@ |
| -// Copyright 2014 The Chromium Authors. All rights reserved. |
| + |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| @@ -276,6 +276,12 @@ blink::WebFrame* HTMLDocument::createChildFrame( |
| } |
| void HTMLDocument::frameDetached(blink::WebFrame* frame) { |
| + frameDetached(frame, blink::WebFrameClient::DetachType::Remove); |
|
dcheng
2015/06/01 21:15:54
Ditto. DetachType::Remove should work. Similar com
lfg
2015/06/01 21:34:19
Done.
|
| +} |
| + |
| +void HTMLDocument::frameDetached(blink::WebFrame* frame, |
| + blink::DetachType type) { |
| + DCHECK(type == blink::DetachType::Remove); |
|
dcheng
2015/06/01 21:15:54
DCHECK_EQ(DetatchType::Remove, type) here and else
lfg
2015/06/01 21:34:19
Yes, this assert is here because we don't support
|
| if (frame->parent()) |
| frame->parent()->removeChild(frame); |