Chromium Code Reviews| Index: chrome/browser/sessions/session_restore.cc |
| =================================================================== |
| --- chrome/browser/sessions/session_restore.cc (revision 78219) |
| +++ chrome/browser/sessions/session_restore.cc (working copy) |
| @@ -653,8 +653,11 @@ |
| // Record an app launch, if applicable. |
| GURL url = tab.navigations.at(tab.current_navigation_index).virtual_url(); |
| - DCHECK(browser->profile()->GetExtensionService()); |
| - if (browser->profile()->GetExtensionService()->IsInstalledApp(url)) { |
| + if ( |
| +#if defined(OS_CHROMEOS) |
|
xiyuan
2011/03/17 00:23:32
Is this file used for non-chromeos build at all?
zel
2011/03/17 01:00:30
Yes it is.
xiyuan
2011/03/17 01:54:03
Yep. Sorry I misread the file name and thought it
|
| + browser->profile()->GetExtensionService() && |
| +#endif |
| + browser->profile()->GetExtensionService()->IsInstalledApp(url)) { |
| UMA_HISTOGRAM_ENUMERATION(extension_misc::kAppLaunchHistogram, |
| extension_misc::APP_LAUNCH_SESSION_RESTORE, |
| extension_misc::APP_LAUNCH_BUCKET_BOUNDARY); |