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

Side by Side Diff: mojo/runner/context.cc

Issue 1465183005: Rename mojo::TokenSerializer to mojo::Broker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win component Created 5 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/runner/context.h" 5 #include "mojo/runner/context.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 #include "url/gurl.h" 47 #include "url/gurl.h"
48 48
49 namespace mojo { 49 namespace mojo {
50 namespace runner { 50 namespace runner {
51 namespace { 51 namespace {
52 52
53 // Used to ensure we only init once. 53 // Used to ensure we only init once.
54 class Setup { 54 class Setup {
55 public: 55 public:
56 Setup() { 56 Setup() {
57 #if defined(OS_WIN)
58 embedder::PreInitializeParentProcess(); 57 embedder::PreInitializeParentProcess();
59 #endif
60
61 embedder::Init(); 58 embedder::Init();
62 } 59 }
63 60
64 ~Setup() {} 61 ~Setup() {}
65 62
66 private: 63 private:
67 DISALLOW_COPY_AND_ASSIGN(Setup); 64 DISALLOW_COPY_AND_ASSIGN(Setup);
68 }; 65 };
69 66
70 void InitContentHandlers(package_manager::PackageManagerImpl* manager, 67 void InitContentHandlers(package_manager::PackageManagerImpl* manager,
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 base::MessageLoop::current()->QuitWhenIdle(); 341 base::MessageLoop::current()->QuitWhenIdle();
345 } else { 342 } else {
346 app_complete_callback_.Run(); 343 app_complete_callback_.Run();
347 } 344 }
348 } 345 }
349 } 346 }
350 } 347 }
351 348
352 } // namespace runner 349 } // namespace runner
353 } // namespace mojo 350 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698