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

Unified Diff: chrome/common/extensions/api/commands/commands_handler.h

Issue 1880143002: Convert chrome/common to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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
Index: chrome/common/extensions/api/commands/commands_handler.h
diff --git a/chrome/common/extensions/api/commands/commands_handler.h b/chrome/common/extensions/api/commands/commands_handler.h
index 585590894af5dd281cd8cd53b93cdc6f6ccfb4b5..faa4464c3b1900ca0224a1a8abe0cb217e33de44 100644
--- a/chrome/common/extensions/api/commands/commands_handler.h
+++ b/chrome/common/extensions/api/commands/commands_handler.h
@@ -5,10 +5,10 @@
#ifndef CHROME_COMMON_EXTENSIONS_API_COMMANDS_COMMANDS_HANDLER_H_
#define CHROME_COMMON_EXTENSIONS_API_COMMANDS_COMMANDS_HANDLER_H_
+#include <memory>
#include <string>
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "chrome/common/extensions/command.h"
#include "extensions/common/extension.h"
#include "extensions/common/manifest.h"
@@ -24,8 +24,8 @@ struct CommandsInfo : public Extension::ManifestData {
// These commands are the commands which the extension wants to use, which are
// not necessarily the ones it can use, as it might be inactive (see also
// Get*Command[s] in CommandService).
- scoped_ptr<Command> browser_action_command;
- scoped_ptr<Command> page_action_command;
+ std::unique_ptr<Command> browser_action_command;
+ std::unique_ptr<Command> page_action_command;
CommandMap named_commands;
static const Command* GetBrowserActionCommand(const Extension* extension);
« no previous file with comments | « chrome/common/component_flash_hint_file_linux.cc ('k') | chrome/common/extensions/api/commands/commands_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698