Index application by URL and identity for multiprocess.

This is a baby step in the direction of allowing to run multiple
instance of the same content handler. This will be needed when we enable
multi-process so that 2 application that use the same content handler
can be run in 2 processes.

R=davemoore@chromium.org

Review URL: https://codereview.chromium.org/979203002
diff --git a/shell/application_manager/shell_impl.cc b/shell/application_manager/shell_impl.cc
index 289b19b..d519cba 100644
--- a/shell/application_manager/shell_impl.cc
+++ b/shell/application_manager/shell_impl.cc
@@ -14,10 +14,10 @@
 ShellImpl::ShellImpl(ApplicationPtr application,
                      ApplicationManager* manager,
                      const GURL& requested_url,
-                     const GURL& url)
+                     const Identity& identity)
     : manager_(manager),
       requested_url_(requested_url),
-      url_(url),
+      identity_(identity),
       application_(application.Pass()),
       binding_(this) {
   binding_.set_error_handler(this);
@@ -29,7 +29,7 @@
 void ShellImpl::InitializeApplication(Array<String> args) {
   ShellPtr shell;
   binding_.Bind(GetProxy(&shell));
-  application_->Initialize(shell.Pass(), args.Pass(), url_.spec());
+  application_->Initialize(shell.Pass(), args.Pass(), identity_.url.spec());
 }
 
 void ShellImpl::ConnectToClient(const GURL& requested_url,
@@ -49,7 +49,7 @@
     LOG(ERROR) << "Error: invalid URL: " << app_url;
     return;
   }
-  manager_->ConnectToApplication(app_gurl, url_, services.Pass(),
+  manager_->ConnectToApplication(app_gurl, identity_.url, services.Pass(),
                                  exposed_services.Pass());
 }