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

Side by Side Diff: content/shell/shell_browser_context.cc

Issue 10806056: Move plugin_browsertests.cc from browser_tests to content_browsertests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync to mac+win fixes Created 8 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/shell/shell_browser_context.h" 5 #include "content/shell/shell_browser_context.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/environment.h" 9 #include "base/environment.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 if (!file_util::PathExists(path_)) 69 if (!file_util::PathExists(path_))
70 file_util::CreateDirectory(path_); 70 file_util::CreateDirectory(path_);
71 } 71 }
72 72
73 FilePath ShellBrowserContext::GetPath() { 73 FilePath ShellBrowserContext::GetPath() {
74 return path_; 74 return path_;
75 } 75 }
76 76
77 bool ShellBrowserContext::IsOffTheRecord() const { 77 bool ShellBrowserContext::IsOffTheRecord() const {
78 return false; 78 return CommandLine::ForCurrentProcess()->HasSwitch(switches::kOffTheRecord);
79 } 79 }
80 80
81 DownloadManagerDelegate* ShellBrowserContext::GetDownloadManagerDelegate() { 81 DownloadManagerDelegate* ShellBrowserContext::GetDownloadManagerDelegate() {
82 download_manager_delegate_ = new ShellDownloadManagerDelegate(); 82 download_manager_delegate_ = new ShellDownloadManagerDelegate();
83 return download_manager_delegate_.get(); 83 return download_manager_delegate_.get();
84 } 84 }
85 85
86 net::URLRequestContextGetter* ShellBrowserContext::GetRequestContext() { 86 net::URLRequestContextGetter* ShellBrowserContext::GetRequestContext() {
87 if (!url_request_getter_) { 87 if (!url_request_getter_) {
88 url_request_getter_ = new ShellURLRequestContextGetter( 88 url_request_getter_ = new ShellURLRequestContextGetter(
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 bool ShellBrowserContext::DidLastSessionExitCleanly() { 125 bool ShellBrowserContext::DidLastSessionExitCleanly() {
126 return true; 126 return true;
127 } 127 }
128 128
129 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { 129 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() {
130 return NULL; 130 return NULL;
131 } 131 }
132 132
133 } // namespace content 133 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698