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

Side by Side Diff: extensions/shell/browser/shell_browser_main_parts.cc

Issue 1862203005: Remove ContentBrowserClient::CreateRequestContext & CreateRequestContextForStoragePartition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 "extensions/shell/browser/shell_browser_main_parts.h" 5 #include "extensions/shell/browser/shell_browser_main_parts.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 kExtensionScheme); 135 kExtensionScheme);
136 content::ChildProcessSecurityPolicy::GetInstance()->RegisterWebSafeScheme( 136 content::ChildProcessSecurityPolicy::GetInstance()->RegisterWebSafeScheme(
137 kExtensionResourceScheme); 137 kExtensionResourceScheme);
138 138
139 // Return no error. 139 // Return no error.
140 return 0; 140 return 0;
141 } 141 }
142 142
143 void ShellBrowserMainParts::PreMainMessageLoopRun() { 143 void ShellBrowserMainParts::PreMainMessageLoopRun() {
144 // Initialize our "profile" equivalent. 144 // Initialize our "profile" equivalent.
145 browser_context_.reset(new ShellBrowserContext); 145 browser_context_.reset(new ShellBrowserContext(this));
146 146
147 // app_shell only supports a single user, so all preferences live in the user 147 // app_shell only supports a single user, so all preferences live in the user
148 // data directory, including the device-wide local state. 148 // data directory, including the device-wide local state.
149 local_state_ = shell_prefs::CreateLocalState(browser_context_->GetPath()); 149 local_state_ = shell_prefs::CreateLocalState(browser_context_->GetPath());
150 user_pref_service_ = 150 user_pref_service_ =
151 shell_prefs::CreateUserPrefService(browser_context_.get()); 151 shell_prefs::CreateUserPrefService(browser_context_.get());
152 152
153 #if defined(OS_CHROMEOS) 153 #if defined(OS_CHROMEOS)
154 chromeos::CrasAudioHandler::Initialize( 154 chromeos::CrasAudioHandler::Initialize(
155 new chromeos::AudioDevicesPrefHandlerImpl(local_state_.get())); 155 new chromeos::AudioDevicesPrefHandlerImpl(local_state_.get()));
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 } 290 }
291 291
292 void ShellBrowserMainParts::CreateExtensionSystem() { 292 void ShellBrowserMainParts::CreateExtensionSystem() {
293 DCHECK(browser_context_); 293 DCHECK(browser_context_);
294 extension_system_ = static_cast<ShellExtensionSystem*>( 294 extension_system_ = static_cast<ShellExtensionSystem*>(
295 ExtensionSystem::Get(browser_context_.get())); 295 ExtensionSystem::Get(browser_context_.get()));
296 extension_system_->InitForRegularProfile(true); 296 extension_system_->InitForRegularProfile(true);
297 } 297 }
298 298
299 } // namespace extensions 299 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698