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

Side by Side Diff: chrome/browser/ui/webui/extensions/pack_extension_handler.cc

Issue 498773003: Use a qualified path for chromium_strings, google_chrome_strings, and generated_resources. (part 2 … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/ui/webui/extensions/pack_extension_handler.h" 5 #include "chrome/browser/ui/webui/extensions/pack_extension_handler.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/browser/extensions/extension_creator.h" 9 #include "chrome/browser/extensions/extension_creator.h"
10 #include "chrome/browser/ui/chrome_select_file_policy.h" 10 #include "chrome/browser/ui/chrome_select_file_policy.h"
11 #include "chrome/grit/generated_resources.h"
11 #include "content/public/browser/web_contents.h" 12 #include "content/public/browser/web_contents.h"
12 #include "content/public/browser/web_ui.h" 13 #include "content/public/browser/web_ui.h"
13 #include "content/public/browser/web_ui_data_source.h" 14 #include "content/public/browser/web_ui_data_source.h"
14 #include "grit/generated_resources.h"
15 #include "ui/base/l10n/l10n_util.h" 15 #include "ui/base/l10n/l10n_util.h"
16 16
17 namespace extensions { 17 namespace extensions {
18 18
19 PackExtensionHandler::PackExtensionHandler() { 19 PackExtensionHandler::PackExtensionHandler() {
20 } 20 }
21 21
22 PackExtensionHandler::~PackExtensionHandler() { 22 PackExtensionHandler::~PackExtensionHandler() {
23 // There may be pending file dialogs, we need to tell them that we've gone 23 // There may be pending file dialogs, we need to tell them that we've gone
24 // away so they don't try and call back to us. 24 // away so they don't try and call back to us.
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 } 198 }
199 199
200 void PackExtensionHandler::ShowAlert(const std::string& message) { 200 void PackExtensionHandler::ShowAlert(const std::string& message) {
201 base::ListValue arguments; 201 base::ListValue arguments;
202 arguments.Append(new base::StringValue(message)); 202 arguments.Append(new base::StringValue(message));
203 web_ui()->CallJavascriptFunction( 203 web_ui()->CallJavascriptFunction(
204 "extensions.PackExtensionOverlay.showError", arguments); 204 "extensions.PackExtensionOverlay.showError", arguments);
205 } 205 }
206 206
207 } // namespace extensions 207 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/extensions/install_extension_handler.cc ('k') | chrome/browser/ui/webui/flags_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698