Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / browser / ui / views / frame / browser_shutdown.cc
blobf8028b47cb1f8d9a3be186728e421dd1df806617
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/ui/views/frame/browser_shutdown.h"
7 #include "base/memory/scoped_vector.h"
8 #include "chrome/browser/ui/browser.h"
9 #include "chrome/browser/ui/tabs/tab_strip_model.h"
10 #include "content/public/browser/web_contents.h"
12 void DestroyBrowserWebContents(Browser* browser) {
13 ScopedVector<content::WebContents> contents;
14 while (browser->tab_strip_model()->count())
15 contents.push_back(browser->tab_strip_model()->DetachWebContentsAt(0));