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

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

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 Created 8 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 (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 "base/logging.h" 5 #include "base/logging.h"
6 #include "base/stl_util.h" 6 #include "base/stl_util.h"
7 #include "base/version.h" 7 #include "base/version.h"
8 #include "chrome/browser/extensions/extension_service.h" 8 #include "chrome/browser/extensions/extension_service.h"
9 #include "chrome/browser/extensions/pending_extension_manager.h" 9 #include "chrome/browser/extensions/pending_extension_manager.h"
10 #include "chrome/common/extensions/extension.h" 10 #include "chrome/common/extensions/extension.h"
11 #include "content/public/browser/browser_thread.h" 11 #include "content/public/browser/browser_thread.h"
12 12
13 using content::BrowserThread; 13 using content::BrowserThread;
14 using extensions::Extension;
14 15
15 namespace { 16 namespace {
16 17
17 // Install predicate used by AddFromExternalUpdateUrl(). 18 // Install predicate used by AddFromExternalUpdateUrl().
18 bool AlwaysInstall(const Extension& extension) { 19 bool AlwaysInstall(const Extension& extension) {
19 return true; 20 return true;
20 } 21 }
21 22
22 } // namespace 23 } // namespace
23 24
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 install_silently, 202 install_silently,
202 install_source); 203 install_source);
203 return true; 204 return true;
204 } 205 }
205 206
206 void PendingExtensionManager::AddForTesting( 207 void PendingExtensionManager::AddForTesting(
207 const std::string& id, 208 const std::string& id,
208 const PendingExtensionInfo& pending_extension_info) { 209 const PendingExtensionInfo& pending_extension_info) {
209 pending_extension_map_[id] = pending_extension_info; 210 pending_extension_map_[id] = pending_extension_info;
210 } 211 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/pending_extension_manager.h ('k') | chrome/browser/extensions/permissions_updater.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698