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

Side by Side Diff: ios/web/shell/shell_browser_state.mm

Issue 1861593005: Convert //ios from scoped_ptr to std::unique_ptr. (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 unified diff | Download patch
« no previous file with comments | « ios/web/shell/shell_browser_state.h ('k') | ios/web/shell/shell_main_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "ios/web/shell/shell_browser_state.h" 5 #include "ios/web/shell/shell_browser_state.h"
6 6
7 #include "base/base_paths.h" 7 #include "base/base_paths.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
11 #include "base/path_service.h" 10 #include "base/path_service.h"
12 #include "base/threading/thread_restrictions.h" 11 #include "base/threading/thread_restrictions.h"
13 #include "ios/web/public/web_thread.h" 12 #include "ios/web/public/web_thread.h"
14 #include "ios/web/shell/shell_url_request_context_getter.h" 13 #include "ios/web/shell/shell_url_request_context_getter.h"
15 14
16 namespace web { 15 namespace web {
17 16
18 ShellBrowserState::ShellBrowserState() : BrowserState() { 17 ShellBrowserState::ShellBrowserState() : BrowserState() {
19 CHECK(PathService::Get(base::DIR_APP_DATA, &path_)); 18 CHECK(PathService::Get(base::DIR_APP_DATA, &path_));
(...skipping 14 matching lines...) Expand all
34 33
35 base::FilePath ShellBrowserState::GetStatePath() const { 34 base::FilePath ShellBrowserState::GetStatePath() const {
36 return path_; 35 return path_;
37 } 36 }
38 37
39 net::URLRequestContextGetter* ShellBrowserState::GetRequestContext() { 38 net::URLRequestContextGetter* ShellBrowserState::GetRequestContext() {
40 return request_context_getter_.get(); 39 return request_context_getter_.get();
41 } 40 }
42 41
43 } // namespace web 42 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/shell/shell_browser_state.h ('k') | ios/web/shell/shell_main_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698