Upstream version 10.38.208.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / thumbnails / thumbnail_list_source.cc
index ad47041..bd447c2 100644 (file)
@@ -94,6 +94,11 @@ void ThumbnailListSource::StartDataRequest(
     int render_process_id,
     int render_frame_id,
     const content::URLDataSource::GotDataCallback& callback) {
+  if (!profile_->GetTopSites()) {
+    callback.Run(NULL);
+    return;
+  }
+
   profile_->GetTopSites()->GetMostVisitedURLs(
       base::Bind(&ThumbnailListSource::OnMostVisitedURLsAvailable,
                  weak_ptr_factory_.GetWeakPtr(),