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

Unified Diff: chrome/browser/plugins/plugin_info_message_filter.cc

Issue 2910823002: Mark plugin requires restart code/resources Linux-only. (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/google_chrome_strings.grd ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/plugins/plugin_info_message_filter.cc
diff --git a/chrome/browser/plugins/plugin_info_message_filter.cc b/chrome/browser/plugins/plugin_info_message_filter.cc
index 8c31c98cf43902031867aaf9363b977c6fbe155b..917e3db386d3a4ce241268e91a8d1e07536ecd2a 100644
--- a/chrome/browser/plugins/plugin_info_message_filter.cc
+++ b/chrome/browser/plugins/plugin_info_message_filter.cc
@@ -11,6 +11,7 @@
#include <utility>
#include "base/bind.h"
+#include "base/memory/ptr_util.h"
#include "base/memory/singleton.h"
#include "base/metrics/histogram_macros.h"
#include "base/strings/utf_string_conversions.h"
@@ -497,10 +498,10 @@ void PluginInfoMessageFilter::ComponentPluginLookupDone(
output->status =
ChromeViewHostMsg_GetPluginInfo_Status::kRestartRequired;
}
-#endif // defined(OS_LINUX)
- plugin_metadata.reset(new PluginMetadata(
+#endif
+ plugin_metadata = base::MakeUnique<PluginMetadata>(
cus_plugin_info->id, cus_plugin_info->name, false, GURL(), GURL(),
- base::ASCIIToUTF16(cus_plugin_info->id), std::string()));
+ base::ASCIIToUTF16(cus_plugin_info->id), std::string());
}
GetPluginInfoReply(params, std::move(output), std::move(plugin_metadata),
reply_msg);
« no previous file with comments | « chrome/app/google_chrome_strings.grd ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698