| 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/extensions/file_manager/file_manager_installer
.h" | 5 #include "chrome/browser/chromeos/file_manager/file_manager_installer.h" |
| 6 | 6 |
| 7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
| 8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
| 9 #include "content/public/browser/web_contents.h" | 9 #include "content/public/browser/web_contents.h" |
| 10 | 10 |
| 11 namespace file_manager { | 11 namespace file_manager { |
| 12 | 12 |
| 13 namespace { | 13 namespace { |
| 14 const char kWebContentsDestroyedError[] = "WebContents is destroyed."; | 14 const char kWebContentsDestroyedError[] = "WebContents is destroyed."; |
| 15 } // namespace | 15 } // namespace |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 return true; | 104 return true; |
| 105 } | 105 } |
| 106 | 106 |
| 107 void FileManagerInstaller::OnWebContentsDestroyed( | 107 void FileManagerInstaller::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 |