| OLD | NEW |
| 1 // Copyright (c) 2011 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_pref_extension_loader.h" | 5 #include "chrome/browser/extensions/external_pref_extension_loader.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/json/json_value_serializer.h" | 10 #include "base/json/json_file_value_serializer.h" |
| 11 #include "base/json/json_string_value_serializer.h" |
| 11 #include "base/logging.h" | 12 #include "base/logging.h" |
| 12 #include "base/metrics/histogram.h" | 13 #include "base/metrics/histogram.h" |
| 13 #include "base/path_service.h" | 14 #include "base/path_service.h" |
| 14 #include "chrome/common/chrome_paths.h" | 15 #include "chrome/common/chrome_paths.h" |
| 15 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
| 16 | 17 |
| 17 using content::BrowserThread; | 18 using content::BrowserThread; |
| 18 | 19 |
| 19 namespace { | 20 namespace { |
| 20 | 21 |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 153 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 153 prefs_.reset(testing_prefs_->DeepCopy()); | 154 prefs_.reset(testing_prefs_->DeepCopy()); |
| 154 LoadFinished(); | 155 LoadFinished(); |
| 155 } | 156 } |
| 156 | 157 |
| 157 ExternalTestingExtensionLoader::~ExternalTestingExtensionLoader() {} | 158 ExternalTestingExtensionLoader::~ExternalTestingExtensionLoader() {} |
| 158 | 159 |
| 159 const FilePath ExternalTestingExtensionLoader::GetBaseCrxFilePath() { | 160 const FilePath ExternalTestingExtensionLoader::GetBaseCrxFilePath() { |
| 160 return fake_base_path_; | 161 return fake_base_path_; |
| 161 } | 162 } |
| OLD | NEW |