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

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

Issue 9564001: Clean up password manager code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add a unit test for sub-frame navigation Created 8 years, 9 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/environment.h" 8 #include "base/environment.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 #else 110 #else
111 NOTIMPLEMENTED(); 111 NOTIMPLEMENTED();
112 #endif 112 #endif
113 113
114 if (!file_util::PathExists(path_)) 114 if (!file_util::PathExists(path_))
115 file_util::CreateDirectory(path_); 115 file_util::CreateDirectory(path_);
116 116
117 return path_; 117 return path_;
118 } 118 }
119 119
120 bool ShellBrowserContext::IsOffTheRecord() { 120 bool ShellBrowserContext::IsOffTheRecord() const {
121 return false; 121 return false;
122 } 122 }
123 123
124 DownloadManager* ShellBrowserContext::GetDownloadManager() { 124 DownloadManager* ShellBrowserContext::GetDownloadManager() {
125 if (!download_manager_.get()) { 125 if (!download_manager_.get()) {
126 download_manager_delegate_ = new ShellDownloadManagerDelegate(); 126 download_manager_delegate_ = new ShellDownloadManagerDelegate();
127 download_manager_ = new DownloadManagerImpl(download_manager_delegate_, 127 download_manager_ = new DownloadManagerImpl(download_manager_delegate_,
128 NULL); 128 NULL);
129 download_manager_delegate_->SetDownloadManager(download_manager_.get()); 129 download_manager_delegate_->SetDownloadManager(download_manager_.get());
130 download_manager_->Init(this); 130 download_manager_->Init(this);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 178
179 bool ShellBrowserContext::DidLastSessionExitCleanly() { 179 bool ShellBrowserContext::DidLastSessionExitCleanly() {
180 return true; 180 return true;
181 } 181 }
182 182
183 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { 183 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() {
184 return NULL; 184 return NULL;
185 } 185 }
186 186
187 } // namespace content 187 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698