| 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/devtools/browser_list_tabcontents_provider.h" | 5 #include "chrome/browser/devtools/browser_list_tabcontents_provider.h" |
| 6 | 6 |
| 7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
| 8 #include "chrome/browser/history/top_sites.h" | |
| 9 #include "chrome/browser/history/top_sites_factory.h" | 8 #include "chrome/browser/history/top_sites_factory.h" |
| 10 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 11 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
| 12 #include "chrome/browser/ui/browser_iterator.h" | 11 #include "chrome/browser/ui/browser_iterator.h" |
| 13 #include "chrome/common/chrome_paths.h" | 12 #include "chrome/common/chrome_paths.h" |
| 13 #include "components/history/core/browser/top_sites.h" |
| 14 #include "grit/browser_resources.h" | 14 #include "grit/browser_resources.h" |
| 15 #include "ui/base/resource/resource_bundle.h" | 15 #include "ui/base/resource/resource_bundle.h" |
| 16 | 16 |
| 17 BrowserListTabContentsProvider::BrowserListTabContentsProvider( | 17 BrowserListTabContentsProvider::BrowserListTabContentsProvider( |
| 18 chrome::HostDesktopType host_desktop_type) | 18 chrome::HostDesktopType host_desktop_type) |
| 19 : host_desktop_type_(host_desktop_type) { | 19 : host_desktop_type_(host_desktop_type) { |
| 20 } | 20 } |
| 21 | 21 |
| 22 BrowserListTabContentsProvider::~BrowserListTabContentsProvider() { | 22 BrowserListTabContentsProvider::~BrowserListTabContentsProvider() { |
| 23 } | 23 } |
| (...skipping 22 matching lines...) Expand all Loading... |
| 46 | 46 |
| 47 base::FilePath BrowserListTabContentsProvider::GetDebugFrontendDir() { | 47 base::FilePath BrowserListTabContentsProvider::GetDebugFrontendDir() { |
| 48 #if defined(DEBUG_DEVTOOLS) | 48 #if defined(DEBUG_DEVTOOLS) |
| 49 base::FilePath inspector_dir; | 49 base::FilePath inspector_dir; |
| 50 PathService::Get(chrome::DIR_INSPECTOR, &inspector_dir); | 50 PathService::Get(chrome::DIR_INSPECTOR, &inspector_dir); |
| 51 return inspector_dir; | 51 return inspector_dir; |
| 52 #else | 52 #else |
| 53 return base::FilePath(); | 53 return base::FilePath(); |
| 54 #endif | 54 #endif |
| 55 } | 55 } |
| OLD | NEW |