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

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

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 1 month 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
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 "chrome/browser/extensions/extension_creator.h" 7 #include "chrome/browser/extensions/extension_creator.h"
8 #include "chrome/browser/ui/chrome_select_file_policy.h" 8 #include "chrome/browser/ui/chrome_select_file_policy.h"
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "content/public/browser/web_contents.h" 11 #include "content/public/browser/web_contents.h"
12 #include "content/public/browser/web_contents_view.h" 12 #include "content/public/browser/web_contents_view.h"
13 #include "content/public/browser/web_ui.h" 13 #include "content/public/browser/web_ui.h"
14 #include "grit/generated_resources.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 PackExtensionHandler::PackExtensionHandler() { 17 PackExtensionHandler::PackExtensionHandler() {
18 } 18 }
19 19
20 PackExtensionHandler::~PackExtensionHandler() { 20 PackExtensionHandler::~PackExtensionHandler() {
21 // There may be pending file dialogs, we need to tell them that we've gone 21 // There may be pending file dialogs, we need to tell them that we've gone
22 // away so they don't try and call back to us. 22 // away so they don't try and call back to us.
23 if (load_extension_dialog_) 23 if (load_extension_dialog_.get())
24 load_extension_dialog_->ListenerDestroyed(); 24 load_extension_dialog_->ListenerDestroyed();
25 25
26 if (pack_job_.get()) 26 if (pack_job_.get())
27 pack_job_->ClearClient(); 27 pack_job_->ClearClient();
28 } 28 }
29 29
30 void PackExtensionHandler::GetLocalizedValues( 30 void PackExtensionHandler::GetLocalizedValues(
31 DictionaryValue* localized_strings) { 31 DictionaryValue* localized_strings) {
32 DCHECK(localized_strings); 32 DCHECK(localized_strings);
33 33
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 FILE_PATH_LITERAL(""), 188 FILE_PATH_LITERAL(""),
189 web_ui()->GetWebContents()->GetView()->GetTopLevelNativeWindow(), 189 web_ui()->GetWebContents()->GetView()->GetTopLevelNativeWindow(),
190 NULL); 190 NULL);
191 } 191 }
192 192
193 void PackExtensionHandler::ShowAlert(const std::string& message) { 193 void PackExtensionHandler::ShowAlert(const std::string& message) {
194 ListValue arguments; 194 ListValue arguments;
195 arguments.Append(Value::CreateStringValue(message)); 195 arguments.Append(Value::CreateStringValue(message));
196 web_ui()->CallJavascriptFunction("PackExtensionOverlay.showError", arguments); 196 web_ui()->CallJavascriptFunction("PackExtensionOverlay.showError", arguments);
197 } 197 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/extensions/command_handler.cc ('k') | chrome/browser/ui/webui/favicon_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698