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

Side by Side Diff: chrome/browser/chromeos/policy/app_pack_updater.cc

Issue 623293003: replace OVERRIDE and FINAL with override and final in chrome/browser/chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: run git cl format on echo_dialog_view.h Created 6 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 (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 "chrome/browser/chromeos/policy/app_pack_updater.h" 5 #include "chrome/browser/chromeos/policy/app_pack_updater.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/sequenced_task_runner.h" 9 #include "base/sequenced_task_runner.h"
10 #include "base/threading/sequenced_worker_pool.h" 10 #include "base/threading/sequenced_worker_pool.h"
(...skipping 26 matching lines...) Expand all
37 37
38 // Used by the AppPackUpdater to update the current list of extensions. 38 // Used by the AppPackUpdater to update the current list of extensions.
39 // The format of |prefs| is detailed in the extensions::ExternalLoader/ 39 // The format of |prefs| is detailed in the extensions::ExternalLoader/
40 // Provider headers. 40 // Provider headers.
41 void SetCurrentAppPackExtensions(scoped_ptr<base::DictionaryValue> prefs) { 41 void SetCurrentAppPackExtensions(scoped_ptr<base::DictionaryValue> prefs) {
42 app_pack_prefs_.Swap(prefs.get()); 42 app_pack_prefs_.Swap(prefs.get());
43 StartLoading(); 43 StartLoading();
44 } 44 }
45 45
46 // Implementation of extensions::ExternalLoader: 46 // Implementation of extensions::ExternalLoader:
47 virtual void StartLoading() OVERRIDE { 47 virtual void StartLoading() override {
48 prefs_.reset(app_pack_prefs_.DeepCopy()); 48 prefs_.reset(app_pack_prefs_.DeepCopy());
49 VLOG(1) << "AppPack extension loader publishing " 49 VLOG(1) << "AppPack extension loader publishing "
50 << app_pack_prefs_.size() << " crx files."; 50 << app_pack_prefs_.size() << " crx files.";
51 LoadFinished(); 51 LoadFinished();
52 } 52 }
53 53
54 protected: 54 protected:
55 virtual ~AppPackExternalLoader() {} 55 virtual ~AppPackExternalLoader() {}
56 56
57 private: 57 private:
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 void AppPackUpdater::SetScreenSaverPath(const base::FilePath& path) { 209 void AppPackUpdater::SetScreenSaverPath(const base::FilePath& path) {
210 // Don't invoke the callback if the path isn't changing. 210 // Don't invoke the callback if the path isn't changing.
211 if (path != screen_saver_path_) { 211 if (path != screen_saver_path_) {
212 screen_saver_path_ = path; 212 screen_saver_path_ = path;
213 if (!screen_saver_update_callback_.is_null()) 213 if (!screen_saver_update_callback_.is_null())
214 screen_saver_update_callback_.Run(screen_saver_path_); 214 screen_saver_update_callback_.Run(screen_saver_path_);
215 } 215 }
216 } 216 }
217 217
218 } // namespace policy 218 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/policy/app_pack_updater.h ('k') | chrome/browser/chromeos/policy/auto_enrollment_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698