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

Side by Side Diff: chrome/browser/chromeos/extensions/external_cache.cc

Issue 300843013: Install and launch kiosk app from cached crx file at start up. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove the new test file from cl. Created 6 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/chromeos/extensions/external_cache.h" 5 #include "chrome/browser/chromeos/extensions/external_cache.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 const std::string& id, 146 const std::string& id,
147 extensions::ExtensionDownloaderDelegate::Error error, 147 extensions::ExtensionDownloaderDelegate::Error error,
148 const extensions::ExtensionDownloaderDelegate::PingResult& ping_result, 148 const extensions::ExtensionDownloaderDelegate::PingResult& ping_result,
149 const std::set<int>& request_ids) { 149 const std::set<int>& request_ids) {
150 if (error == NO_UPDATE_AVAILABLE) { 150 if (error == NO_UPDATE_AVAILABLE) {
151 if (!cached_extensions_->HasKey(id)) { 151 if (!cached_extensions_->HasKey(id)) {
152 LOG(ERROR) << "ExternalCache extension " << id 152 LOG(ERROR) << "ExternalCache extension " << id
153 << " not found on update server"; 153 << " not found on update server";
154 delegate_->OnExtensionDownloadFailed(id, error); 154 delegate_->OnExtensionDownloadFailed(id, error);
155 } else { 155 } else {
156 // No version update for an already cached extension.
156 delegate_->OnExtensionLoadedInCache(id); 157 delegate_->OnExtensionLoadedInCache(id);
157 } 158 }
158 } else { 159 } else {
159 LOG(ERROR) << "ExternalCache failed to download extension " << id 160 LOG(ERROR) << "ExternalCache failed to download extension " << id
160 << ", error " << error; 161 << ", error " << error;
161 delegate_->OnExtensionDownloadFailed(id, error); 162 delegate_->OnExtensionDownloadFailed(id, error);
162 } 163 }
163 } 164 }
164 165
165 void ExternalCache::OnExtensionDownloadFinished( 166 void ExternalCache::OnExtensionDownloadFinished(
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 delegate_->OnExtensionLoadedInCache(id); 320 delegate_->OnExtensionLoadedInCache(id);
320 UpdateExtensionLoader(); 321 UpdateExtensionLoader();
321 } 322 }
322 323
323 std::string ExternalCache::Delegate::GetInstalledExtensionVersion( 324 std::string ExternalCache::Delegate::GetInstalledExtensionVersion(
324 const std::string& id) { 325 const std::string& id) {
325 return std::string(); 326 return std::string();
326 } 327 }
327 328
328 } // namespace chromeos 329 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698