Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(335)

Side by Side Diff: extensions/utility/utility_handler.cc

Issue 2761763002: [wip-test] Test if any bot test calls Parse Update Manifest IPC (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698