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

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

Issue 1362043005: Add extensions code to use common updater in components/update_client/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merged latest origin/master Created 5 years, 2 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
« no previous file with comments | « extensions/shell/browser/shell_extension_system.h ('k') | extensions/shell/common/switches.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_extension_system.h" 5 #include "extensions/shell/browser/shell_extension_system.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 169
170 ContentVerifier* ShellExtensionSystem::content_verifier() { 170 ContentVerifier* ShellExtensionSystem::content_verifier() {
171 return nullptr; 171 return nullptr;
172 } 172 }
173 173
174 scoped_ptr<ExtensionSet> ShellExtensionSystem::GetDependentExtensions( 174 scoped_ptr<ExtensionSet> ShellExtensionSystem::GetDependentExtensions(
175 const Extension* extension) { 175 const Extension* extension) {
176 return make_scoped_ptr(new ExtensionSet()); 176 return make_scoped_ptr(new ExtensionSet());
177 } 177 }
178 178
179 void ShellExtensionSystem::InstallUpdate(const std::string& extension_id,
180 const base::FilePath& temp_dir) {
181 NOTREACHED();
182 base::DeleteFile(temp_dir, true /* recursive */);
183 }
184
179 void ShellExtensionSystem::OnExtensionRegisteredWithRequestContexts( 185 void ShellExtensionSystem::OnExtensionRegisteredWithRequestContexts(
180 scoped_refptr<Extension> extension) { 186 scoped_refptr<Extension> extension) {
181 ExtensionRegistry* registry = ExtensionRegistry::Get(browser_context_); 187 ExtensionRegistry* registry = ExtensionRegistry::Get(browser_context_);
182 registry->AddReady(extension); 188 registry->AddReady(extension);
183 registry->TriggerOnReady(extension.get()); 189 registry->TriggerOnReady(extension.get());
184 } 190 }
185 191
186 } // namespace extensions 192 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/shell/browser/shell_extension_system.h ('k') | extensions/shell/common/switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698