| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_component_loader.h" | 5 #include "chrome/browser/extensions/external_component_loader.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/sha1.h" | 8 #include "base/sha1.h" |
| 9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 10 #include "chrome/browser/bookmarks/enhanced_bookmarks_features.h" | 10 #include "chrome/browser/bookmarks/enhanced_bookmarks_features.h" |
| 11 #include "chrome/browser/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
| 12 #include "chrome/browser/search/hotword_service_factory.h" | 12 #include "chrome/browser/search/hotword_service_factory.h" |
| 13 #include "chrome/browser/signin/signin_manager_factory.h" | 13 #include "chrome/browser/signin/signin_manager_factory.h" |
| 14 #include "chrome/common/chrome_switches.h" | 14 #include "chrome/common/chrome_switches.h" |
| 15 #include "chrome/common/extensions/extension_constants.h" | 15 #include "chrome/common/extensions/extension_constants.h" |
| 16 #include "components/signin/core/browser/signin_manager.h" | 16 #include "components/signin/core/browser/signin_manager.h" |
| 17 #include "extensions/common/extension.h" |
| 17 #include "extensions/common/extension_urls.h" | 18 #include "extensions/common/extension_urls.h" |
| 18 | 19 |
| 19 namespace extensions { | 20 namespace extensions { |
| 20 | 21 |
| 21 ExternalComponentLoader::ExternalComponentLoader(Profile* profile) | 22 ExternalComponentLoader::ExternalComponentLoader(Profile* profile) |
| 22 : profile_(profile) { | 23 : profile_(profile) { |
| 23 } | 24 } |
| 24 | 25 |
| 25 ExternalComponentLoader::~ExternalComponentLoader() {} | 26 ExternalComponentLoader::~ExternalComponentLoader() {} |
| 26 | 27 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 if (GetBookmarksExperimentExtensionID(profile_->GetPrefs(), &ext_id) && | 64 if (GetBookmarksExperimentExtensionID(profile_->GetPrefs(), &ext_id) && |
| 64 !ext_id.empty()) { | 65 !ext_id.empty()) { |
| 65 prefs_->SetString(ext_id + ".external_update_url", | 66 prefs_->SetString(ext_id + ".external_update_url", |
| 66 extension_urls::GetWebstoreUpdateUrl().spec()); | 67 extension_urls::GetWebstoreUpdateUrl().spec()); |
| 67 } | 68 } |
| 68 | 69 |
| 69 LoadFinished(); | 70 LoadFinished(); |
| 70 } | 71 } |
| 71 | 72 |
| 72 } // namespace extensions | 73 } // namespace extensions |
| OLD | NEW |