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 "extensions/utility/utility_handler.h" | 5 #include "extensions/utility/utility_handler.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "content/public/utility/utility_thread.h" | 9 #include "content/public/utility/utility_thread.h" |
10 #include "extensions/common/constants.h" | 10 #include "extensions/common/constants.h" |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 IPC_BEGIN_MESSAGE_MAP(UtilityHandler, message) | 132 IPC_BEGIN_MESSAGE_MAP(UtilityHandler, message) |
133 IPC_MESSAGE_HANDLER(ExtensionUtilityMsg_ParseUpdateManifest, | 133 IPC_MESSAGE_HANDLER(ExtensionUtilityMsg_ParseUpdateManifest, |
134 OnParseUpdateManifest) | 134 OnParseUpdateManifest) |
135 IPC_MESSAGE_UNHANDLED(handled = false) | 135 IPC_MESSAGE_UNHANDLED(handled = false) |
136 IPC_END_MESSAGE_MAP() | 136 IPC_END_MESSAGE_MAP() |
137 return handled; | 137 return handled; |
138 } | 138 } |
139 | 139 |
140 void UtilityHandler::OnParseUpdateManifest(const std::string& xml) { | 140 void UtilityHandler::OnParseUpdateManifest(const std::string& xml) { |
141 UpdateManifest manifest; | 141 UpdateManifest manifest; |
| 142 |
| 143 NOTREACHED(); // HACK to see if any try bot tests call here. |
| 144 |
142 if (!manifest.Parse(xml)) { | 145 if (!manifest.Parse(xml)) { |
143 content::UtilityThread::Get()->Send( | 146 content::UtilityThread::Get()->Send( |
144 new ExtensionUtilityHostMsg_ParseUpdateManifest_Failed( | 147 new ExtensionUtilityHostMsg_ParseUpdateManifest_Failed( |
145 manifest.errors())); | 148 manifest.errors())); |
146 } else { | 149 } else { |
147 content::UtilityThread::Get()->Send( | 150 content::UtilityThread::Get()->Send( |
148 new ExtensionUtilityHostMsg_ParseUpdateManifest_Succeeded( | 151 new ExtensionUtilityHostMsg_ParseUpdateManifest_Succeeded( |
149 manifest.results())); | 152 manifest.results())); |
150 } | 153 } |
151 content::UtilityThread::Get()->ReleaseProcessIfNeeded(); | 154 content::UtilityThread::Get()->ReleaseProcessIfNeeded(); |
152 } | 155 } |
153 | 156 |
154 } // namespace extensions | 157 } // namespace extensions |
OLD | NEW |