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

Unified Diff: services/shell/background/background_shell.h

Issue 1882423004: Move shell service to toplevel shell namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/catalog/factory.cc ('k') | services/shell/background/background_shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/background/background_shell.h
diff --git a/services/shell/background/background_shell.h b/services/shell/background/background_shell.h
index f61ab5b7a54b855e90eda5f925c28452dc56a956..8b48dd537941f567fe54c415ea47c994871eaad2 100644
--- a/services/shell/background/background_shell.h
+++ b/services/shell/background/background_shell.h
@@ -5,10 +5,10 @@
#ifndef SERVICES_SHELL_BACKGROUND_BACKGROUND_SHELL_H_
#define SERVICES_SHELL_BACKGROUND_BACKGROUND_SHELL_H_
+#include <memory>
#include <vector>
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "mojo/public/cpp/bindings/interface_request.h"
#include "services/catalog/store.h"
#include "services/shell/public/interfaces/shell_client.mojom.h"
@@ -17,7 +17,6 @@ namespace catalog {
class Store;
}
-namespace mojo {
namespace shell {
class NativeRunnerDelegate;
@@ -34,7 +33,7 @@ class BackgroundShell {
~InitParams();
NativeRunnerDelegate* native_runner_delegate = nullptr;
- scoped_ptr<catalog::Store> catalog_store;
+ std::unique_ptr<catalog::Store> catalog_store;
// If true the edk is initialized.
bool init_edk = true;
};
@@ -44,7 +43,7 @@ class BackgroundShell {
// Starts the background shell. |command_line_switches| are additional
// switches applied to any processes spawned by this call.
- void Init(scoped_ptr<InitParams> init_params);
+ void Init(std::unique_ptr<InitParams> init_params);
// Obtains an InterfaceRequest for the specified name.
mojom::ShellClientRequest CreateShellClientRequest(
@@ -58,12 +57,11 @@ class BackgroundShell {
private:
class MojoThread;
- scoped_ptr<MojoThread> thread_;
+ std::unique_ptr<MojoThread> thread_;
DISALLOW_COPY_AND_ASSIGN(BackgroundShell);
};
} // namespace shell
-} // namespace mojo
#endif // SERVICES_SHELL_BACKGROUND_BACKGROUND_SHELL_H_
« no previous file with comments | « services/catalog/factory.cc ('k') | services/shell/background/background_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698