Fix regression (crash) in launching Apps (regular ones, not Extension Apps) caused by r50489.
Fix regression (crash) in launching Apps (regular ones, not Extension Apps) caused by r50489.

The function that got changed is shared by both types of Apps, but in the case of old-style apps |extension| is NULL, so dereferencing it will crash.

BUG=47484
TEST=Launch Chrome with --app=http://www.google.com and it should not crash.


Review URL: http://codereview.chromium.org/2842028

git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@50860 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser