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

Side by Side Diff: components/safe_json/safe_json_parser_message_filter.cc

Issue 1917053003: unique_ptr_migration: clean up references to scoped_ptr as of r389721 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "components/safe_json/safe_json_parser_message_filter.h" 5 #include "components/safe_json/safe_json_parser_message_filter.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/json/json_reader.h" 10 #include "base/json/json_reader.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "base/values.h" 11 #include "base/values.h"
13 #include "components/safe_json/safe_json_parser_messages.h" 12 #include "components/safe_json/safe_json_parser_messages.h"
14 #include "content/public/utility/utility_thread.h" 13 #include "content/public/utility/utility_thread.h"
15 #include "ipc/ipc_message.h" 14 #include "ipc/ipc_message.h"
16 15
17 namespace { 16 namespace {
18 17
19 bool Send(IPC::Message* message) { 18 bool Send(IPC::Message* message) {
20 return content::UtilityThread::Get()->Send(message); 19 return content::UtilityThread::Get()->Send(message);
21 } 20 }
(...skipping 28 matching lines...) Expand all
50 wrapper.Append(std::move(value)); 49 wrapper.Append(std::move(value));
51 Send(new SafeJsonParserHostMsg_ParseJSON_Succeeded(wrapper)); 50 Send(new SafeJsonParserHostMsg_ParseJSON_Succeeded(wrapper));
52 } else { 51 } else {
53 Send(new SafeJsonParserHostMsg_ParseJSON_Failed(error)); 52 Send(new SafeJsonParserHostMsg_ParseJSON_Failed(error));
54 } 53 }
55 54
56 content::UtilityThread::Get()->ReleaseProcessIfNeeded(); 55 content::UtilityThread::Get()->ReleaseProcessIfNeeded();
57 } 56 }
58 57
59 } // namespace safe_json 58 } // namespace safe_json
OLDNEW
« no previous file with comments | « components/page_load_metrics/browser/metrics_web_contents_observer.h ('k') | components/tracing/child_trace_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698