Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: shell/application_manager/application_manager.cc

Issue 814273005: Move application_manager from /mojo to /shell. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Update include guards. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "mojo/application_manager/application_manager.h" 5 #include "shell/application_manager/application_manager.h"
6 6
7 #include <stdio.h> 7 #include <stdio.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/stl_util.h" 13 #include "base/stl_util.h"
14 #include "mojo/application_manager/application_loader.h"
15 #include "mojo/public/cpp/application/connect.h" 14 #include "mojo/public/cpp/application/connect.h"
16 #include "mojo/public/cpp/bindings/binding.h" 15 #include "mojo/public/cpp/bindings/binding.h"
17 #include "mojo/public/cpp/bindings/error_handler.h" 16 #include "mojo/public/cpp/bindings/error_handler.h"
18 #include "mojo/public/interfaces/application/shell.mojom.h" 17 #include "mojo/public/interfaces/application/shell.mojom.h"
19 #include "mojo/services/content_handler/public/interfaces/content_handler.mojom. h" 18 #include "mojo/services/content_handler/public/interfaces/content_handler.mojom. h"
20 19
21 namespace mojo { 20 namespace mojo {
22 21
23 namespace { 22 namespace {
24 // Used by TestAPI. 23 // Used by TestAPI.
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 return pipe.handle0.Pass(); 266 return pipe.handle0.Pass();
268 } 267 }
269 268
270 Array<String> ApplicationManager::GetArgsForURL(const GURL& url) { 269 Array<String> ApplicationManager::GetArgsForURL(const GURL& url) {
271 URLToArgsMap::const_iterator args_it = url_to_args_.find(url); 270 URLToArgsMap::const_iterator args_it = url_to_args_.find(url);
272 if (args_it != url_to_args_.end()) 271 if (args_it != url_to_args_.end())
273 return Array<String>::From(args_it->second); 272 return Array<String>::From(args_it->second);
274 return Array<String>(); 273 return Array<String>();
275 } 274 }
276 } // namespace mojo 275 } // namespace mojo
OLDNEW
« no previous file with comments | « shell/application_manager/application_manager.h ('k') | shell/application_manager/application_manager_export.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698