| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/chromeos/file_manager/app_installer.h" | 5 #include "chrome/browser/chromeos/file_manager/app_installer.h" |
| 6 | 6 |
| 7 #include "content/public/browser/web_contents.h" | 7 #include "content/public/browser/web_contents.h" |
| 8 | 8 |
| 9 class Profile; | 9 class Profile; |
| 10 | 10 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 const GURL& AppInstaller::GetRequestorURL() const { | 62 const GURL& AppInstaller::GetRequestorURL() const { |
| 63 return GURL::EmptyGURL(); | 63 return GURL::EmptyGURL(); |
| 64 } | 64 } |
| 65 | 65 |
| 66 scoped_ptr<ExtensionInstallPrompt::Prompt> | 66 scoped_ptr<ExtensionInstallPrompt::Prompt> |
| 67 AppInstaller::CreateInstallPrompt() const { | 67 AppInstaller::CreateInstallPrompt() const { |
| 68 scoped_ptr<ExtensionInstallPrompt::Prompt> prompt( | 68 scoped_ptr<ExtensionInstallPrompt::Prompt> prompt( |
| 69 new ExtensionInstallPrompt::Prompt( | 69 new ExtensionInstallPrompt::Prompt( |
| 70 ExtensionInstallPrompt::INLINE_INSTALL_PROMPT)); | 70 ExtensionInstallPrompt::INLINE_INSTALL_PROMPT)); |
| 71 | 71 |
| 72 prompt->SetInlineInstallWebstoreData(localized_user_count(), | 72 prompt->SetWebstoreData(localized_user_count(), |
| 73 show_user_count(), | 73 show_user_count(), |
| 74 average_rating(), | 74 average_rating(), |
| 75 rating_count()); | 75 rating_count()); |
| 76 return prompt.Pass(); | 76 return prompt.Pass(); |
| 77 } | 77 } |
| 78 | 78 |
| 79 bool AppInstaller::ShouldShowPostInstallUI() const { | 79 bool AppInstaller::ShouldShowPostInstallUI() const { |
| 80 return false; | 80 return false; |
| 81 } | 81 } |
| 82 | 82 |
| 83 bool AppInstaller::ShouldShowAppInstalledBubble() const { | 83 bool AppInstaller::ShouldShowAppInstalledBubble() const { |
| 84 return false; | 84 return false; |
| 85 } | 85 } |
| (...skipping 18 matching lines...) Expand all Loading... |
| 104 return true; | 104 return true; |
| 105 } | 105 } |
| 106 | 106 |
| 107 void AppInstaller::OnWebContentsDestroyed( | 107 void AppInstaller::OnWebContentsDestroyed( |
| 108 content::WebContents* web_contents) { | 108 content::WebContents* web_contents) { |
| 109 callback_.Run(false, kWebContentsDestroyedError); | 109 callback_.Run(false, kWebContentsDestroyedError); |
| 110 AbortInstall(); | 110 AbortInstall(); |
| 111 } | 111 } |
| 112 | 112 |
| 113 } // namespace file_manager | 113 } // namespace file_manager |
| OLD | NEW |