OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/sessions/chrome_tab_restore_service_client.h" | 5 #include "chrome/browser/sessions/chrome_tab_restore_service_client.h" |
6 | 6 |
| 7 #include "build/build_config.h" |
7 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
8 #include "chrome/browser/sessions/session_service.h" | 9 #include "chrome/browser/sessions/session_service.h" |
9 #include "chrome/browser/sessions/session_service_factory.h" | 10 #include "chrome/browser/sessions/session_service_factory.h" |
10 #include "chrome/common/url_constants.h" | 11 #include "chrome/common/url_constants.h" |
11 #include "components/sessions/content/content_live_tab.h" | 12 #include "components/sessions/content/content_live_tab.h" |
12 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
13 | 14 |
14 #if defined(ENABLE_EXTENSIONS) | 15 #if defined(ENABLE_EXTENSIONS) |
15 #include "chrome/browser/extensions/tab_helper.h" | 16 #include "chrome/browser/extensions/tab_helper.h" |
16 #include "chrome/common/extensions/extension_constants.h" | 17 #include "chrome/common/extensions/extension_constants.h" |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 DCHECK(HasLastSession()); | 149 DCHECK(HasLastSession()); |
149 #if defined(ENABLE_SESSION_SERVICE) | 150 #if defined(ENABLE_SESSION_SERVICE) |
150 SessionServiceFactory::GetForProfile(profile_) | 151 SessionServiceFactory::GetForProfile(profile_) |
151 ->GetLastSession(callback, tracker); | 152 ->GetLastSession(callback, tracker); |
152 #endif | 153 #endif |
153 } | 154 } |
154 | 155 |
155 void ChromeTabRestoreServiceClient::OnTabRestored(const GURL& url) { | 156 void ChromeTabRestoreServiceClient::OnTabRestored(const GURL& url) { |
156 RecordAppLaunch(profile_, url); | 157 RecordAppLaunch(profile_, url); |
157 } | 158 } |
OLD | NEW |