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

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

Issue 1395043002: Remove ability for users to launch ephemeral apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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/active_install_data.h" 5 #include "chrome/browser/extensions/active_install_data.h"
6 6
7 #include "chrome/browser/extensions/install_tracker.h" 7 #include "chrome/browser/extensions/install_tracker.h"
8 8
9 namespace extensions { 9 namespace extensions {
10 10
11 // ActiveInstallData: 11 // ActiveInstallData:
12 12
13 ActiveInstallData::ActiveInstallData() 13 ActiveInstallData::ActiveInstallData()
14 : percent_downloaded(0), is_ephemeral(false) { 14 : percent_downloaded(0) {
15 } 15 }
16 16
17 ActiveInstallData::ActiveInstallData(const std::string& extension_id) 17 ActiveInstallData::ActiveInstallData(const std::string& extension_id)
18 : extension_id(extension_id), percent_downloaded(0), is_ephemeral(false) { 18 : extension_id(extension_id), percent_downloaded(0) {
19 } 19 }
20 20
21 // ScopedActiveInstall: 21 // ScopedActiveInstall:
22 22
23 ScopedActiveInstall::ScopedActiveInstall(InstallTracker* tracker, 23 ScopedActiveInstall::ScopedActiveInstall(InstallTracker* tracker,
24 const ActiveInstallData& install_data) 24 const ActiveInstallData& install_data)
25 : tracker_(tracker), 25 : tracker_(tracker),
26 tracker_observer_(this), 26 tracker_observer_(this),
27 extension_id_(install_data.extension_id) { 27 extension_id_(install_data.extension_id) {
28 Init(); 28 Init();
(...skipping 20 matching lines...) Expand all
49 DCHECK(!extension_id_.empty()); 49 DCHECK(!extension_id_.empty());
50 DCHECK(tracker_); 50 DCHECK(tracker_);
51 tracker_observer_.Add(tracker_); 51 tracker_observer_.Add(tracker_);
52 } 52 }
53 53
54 void ScopedActiveInstall::OnShutdown() { 54 void ScopedActiveInstall::OnShutdown() {
55 CancelDeregister(); 55 CancelDeregister();
56 } 56 }
57 57
58 } // namespace extensions 58 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698