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

Side by Side Diff: chrome/browser/extensions/extension_system.cc

Issue 19547009: Move ".crx"/".pem" constants and extension_filenames constants into extensions/common/constants.cc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 "chrome/browser/extensions/extension_system.h" 5 #include "chrome/browser/extensions/extension_system.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 #if defined(OS_CHROMEOS) 126 #if defined(OS_CHROMEOS)
127 if (!extensions_enabled) 127 if (!extensions_enabled)
128 autoupdate_enabled = false; 128 autoupdate_enabled = false;
129 else 129 else
130 autoupdate_enabled = 130 autoupdate_enabled =
131 !command_line->HasSwitch(chromeos::switches::kGuestSession); 131 !command_line->HasSwitch(chromeos::switches::kGuestSession);
132 #endif 132 #endif
133 extension_service_.reset(new ExtensionService( 133 extension_service_.reset(new ExtensionService(
134 profile_, 134 profile_,
135 CommandLine::ForCurrentProcess(), 135 CommandLine::ForCurrentProcess(),
136 profile_->GetPath().AppendASCII(extensions::kInstallDirectoryName), 136 profile_->GetPath().AppendASCII(filenames::kInstallDirectoryName),
137 ExtensionPrefs::Get(profile_), 137 ExtensionPrefs::Get(profile_),
138 blacklist_.get(), 138 blacklist_.get(),
139 autoupdate_enabled, 139 autoupdate_enabled,
140 extensions_enabled, 140 extensions_enabled,
141 &ready_)); 141 &ready_));
142 extension_service_->SetSyncStartFlare( 142 extension_service_->SetSyncStartFlare(
143 sync_start_util::GetFlareForSyncableService(profile_->GetPath())); 143 sync_start_util::GetFlareForSyncableService(profile_->GetPath()));
144 144
145 // These services must be registered before the ExtensionService tries to 145 // These services must be registered before the ExtensionService tries to
146 // load any extensions. 146 // load any extensions.
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts( 371 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts(
372 const std::string& extension_id, 372 const std::string& extension_id,
373 const extension_misc::UnloadedExtensionReason reason) { 373 const extension_misc::UnloadedExtensionReason reason) {
374 BrowserThread::PostTask( 374 BrowserThread::PostTask(
375 BrowserThread::IO, FROM_HERE, 375 BrowserThread::IO, FROM_HERE,
376 base::Bind(&ExtensionInfoMap::RemoveExtension, info_map(), 376 base::Bind(&ExtensionInfoMap::RemoveExtension, info_map(),
377 extension_id, reason)); 377 extension_id, reason));
378 } 378 }
379 379
380 } // namespace extensions 380 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698