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

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

Issue 10265010: Adds NULL check in NotifySessionServiceOfRestoredTabs for (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sessions/session_restore.cc
diff --git a/chrome/browser/sessions/session_restore.cc b/chrome/browser/sessions/session_restore.cc
index 79fc1cb1a9156966457ce41665be1a280d1e7928..b1bc7e9d3a109b301a53830054c68d0f0102229b 100644
--- a/chrome/browser/sessions/session_restore.cc
+++ b/chrome/browser/sessions/session_restore.cc
@@ -953,6 +953,8 @@ class SessionRestoreImpl : public content::NotificationObserver {
void NotifySessionServiceOfRestoredTabs(Browser* browser, int initial_count) {
SessionService* session_service =
SessionServiceFactory::GetForProfile(profile_);
+ if (!session_service)
marja 2012/04/30 18:20:27 Hmm, SessionServiceFactory calls ProfileKeyedServi
+ return;
for (int i = initial_count; i < browser->tab_count(); ++i)
session_service->TabRestored(browser->GetTabContentsWrapperAt(i),
browser->IsTabPinned(i));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698