| 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 "base/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/message_loop.h" | 6 #include "base/message_loop.h" |
| 7 #include "base/string16.h" | 7 #include "base/strings/string16.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "chrome/app/chrome_command_ids.h" | 9 #include "chrome/app/chrome_command_ids.h" |
| 10 #include "chrome/browser/bookmarks/bookmark_model.h" | 10 #include "chrome/browser/bookmarks/bookmark_model.h" |
| 11 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 11 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
| 12 #include "chrome/browser/bookmarks/bookmark_utils.h" | 12 #include "chrome/browser/bookmarks/bookmark_utils.h" |
| 13 #include "chrome/browser/ui/browser.h" | 13 #include "chrome/browser/ui/browser.h" |
| 14 #include "chrome/browser/ui/browser_commands.h" | 14 #include "chrome/browser/ui/browser_commands.h" |
| 15 #include "chrome/browser/ui/browser_tabstrip.h" | 15 #include "chrome/browser/ui/browser_tabstrip.h" |
| 16 #include "chrome/browser/ui/browser_window.h" | 16 #include "chrome/browser/ui/browser_window.h" |
| 17 #include "chrome/browser/ui/omnibox/location_bar.h" | 17 #include "chrome/browser/ui/omnibox/location_bar.h" |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 // Page is now bookmarked. | 89 // Page is now bookmarked. |
| 90 ASSERT_TRUE(loc_bar->GetBookmarkStarVisibility()); | 90 ASSERT_TRUE(loc_bar->GetBookmarkStarVisibility()); |
| 91 | 91 |
| 92 // Get the BookmarkModel to unbookmark the bookmark. | 92 // Get the BookmarkModel to unbookmark the bookmark. |
| 93 bookmark_utils::RemoveAllBookmarks(model, GURL("http://www.google.com")); | 93 bookmark_utils::RemoveAllBookmarks(model, GURL("http://www.google.com")); |
| 94 | 94 |
| 95 // Page is now unbookmarked. | 95 // Page is now unbookmarked. |
| 96 ASSERT_FALSE(loc_bar->GetBookmarkStarVisibility()); | 96 ASSERT_FALSE(loc_bar->GetBookmarkStarVisibility()); |
| 97 | 97 |
| 98 } | 98 } |
| OLD | NEW |