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

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

Issue 2839373003: struct UnloadedExtensionInfo -> enum UnloadedExtensionInfoReason (Closed)
Patch Set: Rebase Created 3 years, 7 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 "chrome/browser/extensions/extension_system_impl.h" 5 #include "chrome/browser/extensions/extension_system_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/base_switches.h" 9 #include "base/base_switches.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 BrowserThread::PostTaskAndReply( 454 BrowserThread::PostTaskAndReply(
455 BrowserThread::IO, FROM_HERE, 455 BrowserThread::IO, FROM_HERE,
456 base::BindOnce(&InfoMap::AddExtension, info_map(), 456 base::BindOnce(&InfoMap::AddExtension, info_map(),
457 base::RetainedRef(extension), install_time, 457 base::RetainedRef(extension), install_time,
458 incognito_enabled, notifications_disabled), 458 incognito_enabled, notifications_disabled),
459 callback); 459 callback);
460 } 460 }
461 461
462 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts( 462 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts(
463 const std::string& extension_id, 463 const std::string& extension_id,
464 const UnloadedExtensionInfo::Reason reason) { 464 const UnloadedExtensionReason reason) {
465 BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, 465 BrowserThread::PostTask(BrowserThread::IO, FROM_HERE,
466 base::BindOnce(&InfoMap::RemoveExtension, info_map(), 466 base::BindOnce(&InfoMap::RemoveExtension, info_map(),
467 extension_id, reason)); 467 extension_id, reason));
468 } 468 }
469 469
470 } // namespace extensions 470 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698