| OLD | NEW |
| 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 27 matching lines...) Expand all Loading... |
| 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( | 47 void ExternalLoader::OnUpdated( |
| 48 scoped_ptr<base::DictionaryValue> updated_prefs) { | 48 std::unique_ptr<base::DictionaryValue> updated_prefs) { |
| 49 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 49 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 50 if (owner_) | 50 if (owner_) |
| 51 owner_->UpdatePrefs(updated_prefs.release()); | 51 owner_->UpdatePrefs(updated_prefs.release()); |
| 52 } | 52 } |
| 53 | 53 |
| 54 } // namespace extensions | 54 } // namespace extensions |
| OLD | NEW |