summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/chromeos/extensions/file_browser_private_api.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/browser/chromeos/extensions/file_browser_private_api.cc b/chrome/browser/chromeos/extensions/file_browser_private_api.cc
index 4dd503d..858d649 100644
--- a/chrome/browser/chromeos/extensions/file_browser_private_api.cc
+++ b/chrome/browser/chromeos/extensions/file_browser_private_api.cc
@@ -992,9 +992,11 @@ bool AddMountFunction::RunImpl() {
case chromeos::MOUNT_TYPE_GDATA: {
gdata::GDataFileSystem* file_system =
gdata::GDataFileSystemFactory::GetForProfile(profile_);
- file_system->Authenticate(
- base::Bind(&AddMountFunction::OnGDataAuthentication,
- this));
+ if (file_system) {
+ file_system->Authenticate(
+ base::Bind(&AddMountFunction::OnGDataAuthentication,
+ this));
+ }
break;
}
default: {