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

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

Issue 1495403002: Observe adding external extensions via windows registry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add missing files Created 4 years, 11 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/extensions/external_loader.h" 5 #include "chrome/browser/extensions/external_loader.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/browser/extensions/external_provider_impl.h" 9 #include "chrome/browser/extensions/external_provider_impl.h"
10 #include "content/public/browser/browser_thread.h" 10 #include "content/public/browser/browser_thread.h"
(...skipping 26 matching lines...) Expand all
37 37
38 ExternalLoader::~ExternalLoader() {} 38 ExternalLoader::~ExternalLoader() {}
39 39
40 void ExternalLoader::LoadFinished() { 40 void ExternalLoader::LoadFinished() {
41 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 41 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
42 if (owner_) { 42 if (owner_) {
43 owner_->SetPrefs(prefs_.release()); 43 owner_->SetPrefs(prefs_.release());
44 } 44 }
45 } 45 }
46 46
47 void ExternalLoader::OnUpdated() {
48 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
49 if (owner_)
50 owner_->UpdatePrefs(prefs_.release());
51 }
52
47 } // namespace extensions 53 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698