| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_reinstaller.h" | 5 #include "chrome/browser/extensions/webstore_reinstaller.h" |
| 6 | 6 |
| 7 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
| 8 #include "chrome/browser/extensions/extension_install_prompt.h" | 8 #include "chrome/browser/extensions/extension_install_prompt.h" |
| 9 #include "chrome/browser/extensions/extension_service.h" | 9 #include "chrome/browser/extensions/extension_service.h" |
| 10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 scoped_ptr<ExtensionInstallPrompt::Prompt> | 47 scoped_ptr<ExtensionInstallPrompt::Prompt> |
| 48 WebstoreReinstaller::CreateInstallPrompt() const { | 48 WebstoreReinstaller::CreateInstallPrompt() const { |
| 49 scoped_ptr<ExtensionInstallPrompt::Prompt> prompt( | 49 scoped_ptr<ExtensionInstallPrompt::Prompt> prompt( |
| 50 new ExtensionInstallPrompt::Prompt( | 50 new ExtensionInstallPrompt::Prompt( |
| 51 ExtensionInstallPrompt::REPAIR_PROMPT)); | 51 ExtensionInstallPrompt::REPAIR_PROMPT)); |
| 52 prompt->SetWebstoreData(localized_user_count(), | 52 prompt->SetWebstoreData(localized_user_count(), |
| 53 show_user_count(), | 53 show_user_count(), |
| 54 average_rating(), | 54 average_rating(), |
| 55 rating_count()); | 55 rating_count()); |
| 56 return prompt.Pass(); | 56 return prompt; |
| 57 } | 57 } |
| 58 | 58 |
| 59 bool WebstoreReinstaller::ShouldShowPostInstallUI() const { | 59 bool WebstoreReinstaller::ShouldShowPostInstallUI() const { |
| 60 return false; | 60 return false; |
| 61 } | 61 } |
| 62 | 62 |
| 63 bool WebstoreReinstaller::ShouldShowAppInstalledBubble() const { | 63 bool WebstoreReinstaller::ShouldShowAppInstalledBubble() const { |
| 64 return false; | 64 return false; |
| 65 } | 65 } |
| 66 | 66 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 97 false, kCouldNotUninstallExtension, webstore_install::OTHER_ERROR); | 97 false, kCouldNotUninstallExtension, webstore_install::OTHER_ERROR); |
| 98 AbortInstall(); | 98 AbortInstall(); |
| 99 } | 99 } |
| 100 } | 100 } |
| 101 | 101 |
| 102 void WebstoreReinstaller::OnDeletionDone() { | 102 void WebstoreReinstaller::OnDeletionDone() { |
| 103 WebstoreStandaloneInstaller::InstallUIProceed(); | 103 WebstoreStandaloneInstaller::InstallUIProceed(); |
| 104 } | 104 } |
| 105 | 105 |
| 106 } // namespace extensions | 106 } // namespace extensions |
| OLD | NEW |