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

Side by Side Diff: chrome/browser/ui/webui/options/import_data_handler.cc

Issue 505913002: Remove implicit conversions from scoped_refptr to T* in chrome/browser/ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add {} 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
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/options/import_data_handler.h" 5 #include "chrome/browser/ui/webui/options/import_data_handler.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 27 matching lines...) Expand all
38 import_did_succeed_(false) { 38 import_did_succeed_(false) {
39 DCHECK_CURRENTLY_ON(BrowserThread::UI); 39 DCHECK_CURRENTLY_ON(BrowserThread::UI);
40 } 40 }
41 41
42 ImportDataHandler::~ImportDataHandler() { 42 ImportDataHandler::~ImportDataHandler() {
43 DCHECK_CURRENTLY_ON(BrowserThread::UI); 43 DCHECK_CURRENTLY_ON(BrowserThread::UI);
44 44
45 if (importer_host_) 45 if (importer_host_)
46 importer_host_->set_observer(NULL); 46 importer_host_->set_observer(NULL);
47 47
48 if (select_file_dialog_) 48 if (select_file_dialog_.get())
49 select_file_dialog_->ListenerDestroyed(); 49 select_file_dialog_->ListenerDestroyed();
50 } 50 }
51 51
52 void ImportDataHandler::GetLocalizedValues( 52 void ImportDataHandler::GetLocalizedValues(
53 base::DictionaryValue* localized_strings) { 53 base::DictionaryValue* localized_strings) {
54 DCHECK_CURRENTLY_ON(BrowserThread::UI); 54 DCHECK_CURRENTLY_ON(BrowserThread::UI);
55 DCHECK(localized_strings); 55 DCHECK(localized_strings);
56 56
57 static OptionsStringResource resources[] = { 57 static OptionsStringResource resources[] = {
58 { "importFromLabel", IDS_IMPORT_FROM_LABEL }, 58 { "importFromLabel", IDS_IMPORT_FROM_LABEL },
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 base::string16(), 264 base::string16(),
265 base::FilePath(), 265 base::FilePath(),
266 &file_type_info, 266 &file_type_info,
267 0, 267 0,
268 base::FilePath::StringType(), 268 base::FilePath::StringType(),
269 browser->window()->GetNativeWindow(), 269 browser->window()->GetNativeWindow(),
270 NULL); 270 NULL);
271 } 271 }
272 272
273 } // namespace options 273 } // namespace options
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698