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/webstore_standalone_installer.h" | 5 #include "chrome/browser/extensions/webstore_standalone_installer.h" |
6 | 6 |
7 #include "base/values.h" | 7 #include "base/values.h" |
8 #include "chrome/browser/extensions/crx_installer.h" | 8 #include "chrome/browser/extensions/crx_installer.h" |
9 #include "chrome/browser/extensions/extension_install_prompt.h" | 9 #include "chrome/browser/extensions/extension_install_prompt.h" |
10 #include "chrome/browser/extensions/extension_install_ui.h" | 10 #include "chrome/browser/extensions/extension_install_ui.h" |
11 #include "chrome/browser/extensions/extension_service.h" | 11 #include "chrome/browser/extensions/extension_service.h" |
12 #include "chrome/browser/extensions/extension_system.h" | |
13 #include "chrome/browser/extensions/webstore_data_fetcher.h" | 12 #include "chrome/browser/extensions/webstore_data_fetcher.h" |
14 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
15 #include "content/public/browser/web_contents.h" | 14 #include "content/public/browser/web_contents.h" |
16 #include "extensions/browser/extension_prefs.h" | 15 #include "extensions/browser/extension_prefs.h" |
| 16 #include "extensions/browser/extension_system.h" |
17 #include "extensions/common/extension.h" | 17 #include "extensions/common/extension.h" |
18 #include "url/gurl.h" | 18 #include "url/gurl.h" |
19 | 19 |
20 using content::WebContents; | 20 using content::WebContents; |
21 | 21 |
22 namespace extensions { | 22 namespace extensions { |
23 | 23 |
24 const char kInvalidWebstoreItemId[] = "Invalid Chrome Web Store item ID"; | 24 const char kInvalidWebstoreItemId[] = "Invalid Chrome Web Store item ID"; |
25 const char kWebstoreRequestError[] = | 25 const char kWebstoreRequestError[] = |
26 "Could not fetch data from the Chrome Web Store"; | 26 "Could not fetch data from the Chrome Web Store"; |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 // Balanced in InstallUIAbort or indirectly in InstallUIProceed via | 321 // Balanced in InstallUIAbort or indirectly in InstallUIProceed via |
322 // OnExtensionInstallSuccess or OnExtensionInstallFailure. | 322 // OnExtensionInstallSuccess or OnExtensionInstallFailure. |
323 AddRef(); | 323 AddRef(); |
324 | 324 |
325 install_ui_ = CreateInstallUI(); | 325 install_ui_ = CreateInstallUI(); |
326 install_ui_->ConfirmStandaloneInstall( | 326 install_ui_->ConfirmStandaloneInstall( |
327 this, localized_extension_for_display_.get(), &icon_, *install_prompt_); | 327 this, localized_extension_for_display_.get(), &icon_, *install_prompt_); |
328 } | 328 } |
329 | 329 |
330 } // namespace extensions | 330 } // namespace extensions |
OLD | NEW |