Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Unified Diff: chrome/browser/sessions/session_restore.cc

Issue 6674043: Rewritten MountLibrary to work with non-blocking mount API calls in libcros.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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,13 @@
// Record an app launch, if applicable.
GURL url = tab.navigations.at(tab.current_navigation_index).virtual_url();
+#if defined(OS_CHROMEOS)
+ if (browser->profile()->GetExtensionService() &&
+ browser->profile()->GetExtensionService()->IsInstalledApp(url)) {
+#else
DCHECK(browser->profile()->GetExtensionService());
if (browser->profile()->GetExtensionService()->IsInstalledApp(url)) {
+#endif
stevenjb 2011/03/16 22:52:55 Maybe only do the DCHECK for non OS_CHROMEOS and m
zel 2011/03/17 01:00:30 This solves the crash that affects our debugging,
stevenjb 2011/03/17 01:30:37 I meant to suggest leaving the DCHECK in for non-c
UMA_HISTOGRAM_ENUMERATION(extension_misc::kAppLaunchHistogram,
extension_misc::APP_LAUNCH_SESSION_RESTORE,
extension_misc::APP_LAUNCH_BUCKET_BOUNDARY);

Powered by Google App Engine
This is Rietveld 408576698