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

Side by Side Diff: ios/web/public/web_client.mm

Issue 2647943004: Return unique_ptr from WebClient::CreateWebMainParts() (Closed)
Patch Set: Created 3 years, 11 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #import "ios/web/public/web_client.h" 5 #import "ios/web/public/web_client.h"
6 6
7 #import <Foundation/Foundation.h> 7 #import <Foundation/Foundation.h>
8 8
9 #if !defined(__has_feature) || !__has_feature(objc_arc) 9 #if !defined(__has_feature) || !__has_feature(objc_arc)
10 #error "This file requires ARC support." 10 #error "This file requires ARC support."
(...skipping 10 matching lines...) Expand all
21 WebClient* GetWebClient() { 21 WebClient* GetWebClient() {
22 return g_client; 22 return g_client;
23 } 23 }
24 24
25 WebClient::WebClient() { 25 WebClient::WebClient() {
26 } 26 }
27 27
28 WebClient::~WebClient() { 28 WebClient::~WebClient() {
29 } 29 }
30 30
31 WebMainParts* WebClient::CreateWebMainParts() { 31 std::unique_ptr<WebMainParts> WebClient::CreateWebMainParts() {
32 return nullptr; 32 return nullptr;
33 } 33 }
34 34
35 std::string WebClient::GetAcceptLangs(BrowserState* state) const { 35 std::string WebClient::GetAcceptLangs(BrowserState* state) const {
36 return std::string(); 36 return std::string();
37 } 37 }
38 38
39 std::string WebClient::GetApplicationLocale() const { 39 std::string WebClient::GetApplicationLocale() const {
40 return "en-US"; 40 return "en-US";
41 } 41 }
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 WebState* web_state, 82 WebState* web_state,
83 int cert_error, 83 int cert_error,
84 const net::SSLInfo& ssl_info, 84 const net::SSLInfo& ssl_info,
85 const GURL& request_url, 85 const GURL& request_url,
86 bool overridable, 86 bool overridable,
87 const base::Callback<void(bool)>& callback) { 87 const base::Callback<void(bool)>& callback) {
88 callback.Run(false); 88 callback.Run(false);
89 } 89 }
90 90
91 } // namespace web 91 } // namespace web
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698