| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/browser/bookmarks/bookmark_editor.h" | 5 #include "chrome/browser/bookmarks/bookmark_editor.h" |
| 6 #include "chrome/browser/bookmarks/bookmark_utils.h" | 6 #include "chrome/browser/bookmarks/bookmark_utils.h" |
| 7 #include "chrome/browser/profiles/profile.h" | 7 #include "chrome/browser/profiles/profile.h" |
| 8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
| 9 #include "chrome/browser/ui/browser_window.h" | 9 #include "chrome/browser/ui/browser_window.h" |
| 10 #include "grit/generated_resources.h" | 10 #include "grit/generated_resources.h" |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 void BookmarkEditor::ShowBookmarkAllTabsDialog(Browser* browser) { | 85 void BookmarkEditor::ShowBookmarkAllTabsDialog(Browser* browser) { |
| 86 Profile* profile = browser->profile(); | 86 Profile* profile = browser->profile(); |
| 87 BookmarkModel* model = profile->GetBookmarkModel(); | 87 BookmarkModel* model = profile->GetBookmarkModel(); |
| 88 DCHECK(model && model->IsLoaded()); | 88 DCHECK(model && model->IsLoaded()); |
| 89 | 89 |
| 90 BookmarkEditor::EditDetails details = | 90 BookmarkEditor::EditDetails details = |
| 91 BookmarkEditor::EditDetails::AddFolder(model->GetParentForNewNodes(), -1); | 91 BookmarkEditor::EditDetails::AddFolder(model->GetParentForNewNodes(), -1); |
| 92 bookmark_utils::GetURLsForOpenTabs(browser, &(details.urls)); | 92 bookmark_utils::GetURLsForOpenTabs(browser, &(details.urls)); |
| 93 DCHECK(!details.urls.empty()); | 93 DCHECK(!details.urls.empty()); |
| 94 | 94 |
| 95 BookmarkEditor::Show(browser->window()->GetNativeHandle(), | 95 BookmarkEditor::Show(browser->window()->GetNativeWindow(), |
| 96 profile, details, BookmarkEditor::SHOW_TREE); | 96 profile, details, BookmarkEditor::SHOW_TREE); |
| 97 } | 97 } |
| 98 | 98 |
| OLD | NEW |