| 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/ui/cocoa/history_menu_bridge.h" | 5 #include "chrome/browser/ui/cocoa/history_menu_bridge.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/bind.h" | 9 #include "base/bind.h" |
| 8 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| 9 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
| 10 #include "base/strings/sys_string_conversions.h" | 12 #include "base/strings/sys_string_conversions.h" |
| 11 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 12 #include "chrome/app/chrome_command_ids.h" // IDC_HISTORY_MENU | 14 #include "chrome/app/chrome_command_ids.h" // IDC_HISTORY_MENU |
| 13 #include "chrome/browser/favicon/favicon_service_factory.h" | 15 #include "chrome/browser/favicon/favicon_service_factory.h" |
| 14 #include "chrome/browser/history/history_service_factory.h" | 16 #include "chrome/browser/history/history_service_factory.h" |
| 15 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
| 16 #include "chrome/browser/sessions/tab_restore_service_factory.h" | 18 #include "chrome/browser/sessions/tab_restore_service_factory.h" |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 const history::URLRows& deleted_rows, | 453 const history::URLRows& deleted_rows, |
| 452 const std::set<GURL>& favicon_urls) { | 454 const std::set<GURL>& favicon_urls) { |
| 453 OnHistoryChanged(); | 455 OnHistoryChanged(); |
| 454 } | 456 } |
| 455 | 457 |
| 456 void HistoryMenuBridge::OnHistoryServiceLoaded( | 458 void HistoryMenuBridge::OnHistoryServiceLoaded( |
| 457 history::HistoryService* history_service) { | 459 history::HistoryService* history_service) { |
| 458 history_service_ = history_service; | 460 history_service_ = history_service; |
| 459 Init(); | 461 Init(); |
| 460 } | 462 } |
| OLD | NEW |