Fix potential SEGV issue.
DriveIntegrationServiceFactory::GetForProfile may return NULL, if the Drive is disabled, so ->file_system() can be SEGV error. This CL replaces it by drive::util::GetFileSystemByProfile and handles cases that NULL is returned. BUG=284972 TEST=Ran unit_tests Review URL: https://chromiumcodereview.appspot.com/23739006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221634 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment