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

Side by Side Diff: chrome/browser/media_galleries/media_galleries_scan_result_controller.cc

Issue 352393002: Be explicit about target type in platform_util::OpenItem() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Catch up with changes to JSONStringValueSerializer and address CrOS comment 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 | Annotate | Revision Log
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 "chrome/browser/media_galleries/media_galleries_scan_result_controller. h" 5 #include "chrome/browser/media_galleries/media_galleries_scan_result_controller. h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <list> 8 #include <list>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 entry->second.selected = selected; 179 entry->second.selected = selected;
180 } 180 }
181 181
182 void MediaGalleriesScanResultController::DidClickOpenFolderViewer( 182 void MediaGalleriesScanResultController::DidClickOpenFolderViewer(
183 MediaGalleryPrefId pref_id) { 183 MediaGalleryPrefId pref_id) {
184 ScanResults::const_iterator entry = scan_results_.find(pref_id); 184 ScanResults::const_iterator entry = scan_results_.find(pref_id);
185 if (entry == scan_results_.end()) { 185 if (entry == scan_results_.end()) {
186 NOTREACHED(); 186 NOTREACHED();
187 return; 187 return;
188 } 188 }
189 platform_util::OpenItem(GetProfile(), entry->second.pref_info.AbsolutePath()); 189 platform_util::OpenItem(GetProfile(), entry->second.pref_info.AbsolutePath(),
190 platform_util::OPEN_FOLDER,
191 platform_util::OpenOperationCallback());
190 } 192 }
191 193
192 void MediaGalleriesScanResultController::DidForgetEntry( 194 void MediaGalleriesScanResultController::DidForgetEntry(
193 MediaGalleryPrefId pref_id) { 195 MediaGalleryPrefId pref_id) {
194 media_galleries::UsageCount(media_galleries::ADD_SCAN_RESULTS_FORGET_GALLERY); 196 media_galleries::UsageCount(media_galleries::ADD_SCAN_RESULTS_FORGET_GALLERY);
195 results_to_remove_.insert(pref_id); 197 results_to_remove_.insert(pref_id);
196 scan_results_.erase(pref_id); 198 scan_results_.erase(pref_id);
197 dialog_->UpdateGalleries(); 199 dialog_->UpdateGalleries();
198 } 200 }
199 201
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 MediaGalleriesPreferences* /*prefs*/, 378 MediaGalleriesPreferences* /*prefs*/,
377 MediaGalleryPrefId /*pref_id*/) { 379 MediaGalleryPrefId /*pref_id*/) {
378 OnPreferenceUpdate(extension_->id()); 380 OnPreferenceUpdate(extension_->id());
379 } 381 }
380 382
381 void MediaGalleriesScanResultController::OnGalleryInfoUpdated( 383 void MediaGalleriesScanResultController::OnGalleryInfoUpdated(
382 MediaGalleriesPreferences* /*prefs*/, 384 MediaGalleriesPreferences* /*prefs*/,
383 MediaGalleryPrefId /*pref_id*/) { 385 MediaGalleryPrefId /*pref_id*/) {
384 OnPreferenceUpdate(extension_->id()); 386 OnPreferenceUpdate(extension_->id());
385 } 387 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/downloads/downloads_api.cc ('k') | chrome/browser/platform_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698