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

Side by Side Diff: chrome/browser/extensions/api/developer_private/entry_picker.cc

Issue 958803004: [Extensions] Make chrome://extensions use developerPrivate for packing crxs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Win fix Created 5 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
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/extensions/api/developer_private/entry_picker.h" 5 #include "chrome/browser/extensions/api/developer_private/entry_picker.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "chrome/browser/extensions/api/developer_private/developer_private_api. h" 10 #include "chrome/browser/extensions/api/developer_private/developer_private_api. h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 void* params) { 72 void* params) {
73 client_->FileSelected(path); 73 client_->FileSelected(path);
74 delete this; 74 delete this;
75 } 75 }
76 76
77 void EntryPicker::FileSelectionCanceled(void* params) { 77 void EntryPicker::FileSelectionCanceled(void* params) {
78 client_->FileSelectionCanceled(); 78 client_->FileSelectionCanceled();
79 delete this; 79 delete this;
80 } 80 }
81 81
82 void EntryPicker::MultiFilesSelected(const std::vector<base::FilePath>& files,
83 void* params) {
84 NOTREACHED();
85 client_->FileSelectionCanceled();
86 delete this;
87 }
88
82 // static 89 // static
83 void EntryPicker::SkipPickerAndAlwaysSelectPathForTest( 90 void EntryPicker::SkipPickerAndAlwaysSelectPathForTest(
84 base::FilePath* path) { 91 base::FilePath* path) {
85 g_skip_picker_for_test = true; 92 g_skip_picker_for_test = true;
86 g_path_to_be_picked_for_test = path; 93 g_path_to_be_picked_for_test = path;
87 } 94 }
88 95
89 // static 96 // static
90 void EntryPicker::SkipPickerAndAlwaysCancelForTest() { 97 void EntryPicker::SkipPickerAndAlwaysCancelForTest() {
91 g_skip_picker_for_test = true; 98 g_skip_picker_for_test = true;
92 g_path_to_be_picked_for_test = NULL; 99 g_path_to_be_picked_for_test = NULL;
93 } 100 }
94 101
95 // static 102 // static
96 void EntryPicker::StopSkippingPickerForTest() { 103 void EntryPicker::StopSkippingPickerForTest() {
97 g_skip_picker_for_test = false; 104 g_skip_picker_for_test = false;
98 } 105 }
99 106
100 } // namespace api 107 } // namespace api
101 108
102 } // namespace extensions 109 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/developer_private/entry_picker.h ('k') | chrome/browser/resources/extensions/extensions.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698