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

Side by Side Diff: trunk/src/mojo/shell/context.cc

Issue 299263002: Revert 272472 "Mojo: nuke EnvironmentData" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « trunk/src/mojo/shell/android/mojo_main.cc ('k') | trunk/src/mojo/shell/desktop/mojo_main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/shell/context.h" 5 #include "mojo/shell/context.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 gles2::GLES2SupportImpl::Init(); 42 gles2::GLES2SupportImpl::Init();
43 } 43 }
44 44
45 ~Setup() { 45 ~Setup() {
46 } 46 }
47 47
48 private: 48 private:
49 DISALLOW_COPY_AND_ASSIGN(Setup); 49 DISALLOW_COPY_AND_ASSIGN(Setup);
50 }; 50 };
51 51
52 static base::LazyInstance<Setup>::Leaky setup = LAZY_INSTANCE_INITIALIZER; 52 static base::LazyInstance<Setup> setup = LAZY_INSTANCE_INITIALIZER;
53 53
54 } // namespace 54 } // namespace
55 55
56 class Context::NativeViewportServiceLoader : public ServiceLoader { 56 class Context::NativeViewportServiceLoader : public ServiceLoader {
57 public: 57 public:
58 explicit NativeViewportServiceLoader(Context* context) : context_(context) {} 58 explicit NativeViewportServiceLoader(Context* context) : context_(context) {}
59 virtual ~NativeViewportServiceLoader() {} 59 virtual ~NativeViewportServiceLoader() {}
60 60
61 private: 61 private:
62 virtual void LoadService(ServiceManager* manager, 62 virtual void LoadService(ServiceManager* manager,
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 #if defined(USE_AURA) 129 #if defined(USE_AURA)
130 service_manager_.SetLoaderForURL( 130 service_manager_.SetLoaderForURL(
131 scoped_ptr<ServiceLoader>(), 131 scoped_ptr<ServiceLoader>(),
132 GURL("mojo:mojo_view_manager")); 132 GURL("mojo:mojo_view_manager"));
133 #endif 133 #endif
134 service_manager_.set_default_loader(scoped_ptr<ServiceLoader>()); 134 service_manager_.set_default_loader(scoped_ptr<ServiceLoader>());
135 } 135 }
136 136
137 } // namespace shell 137 } // namespace shell
138 } // namespace mojo 138 } // namespace mojo
OLDNEW
« no previous file with comments | « trunk/src/mojo/shell/android/mojo_main.cc ('k') | trunk/src/mojo/shell/desktop/mojo_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698