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

Side by Side Diff: chrome/browser/media_gallery/media_galleries_dialog_controller.cc

Issue 10855087: media galleries dialog fixes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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
« no previous file with comments | « chrome/browser/media_gallery/media_galleries_dialog_controller.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/media_gallery/media_galleries_dialog_controller.h" 5 #include "chrome/browser/media_gallery/media_galleries_dialog_controller.h"
6 6
7 #include "base/path_service.h" 7 #include "base/path_service.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/media_gallery/media_galleries_preferences_factory.h" 9 #include "chrome/browser/media_gallery/media_galleries_preferences_factory.h"
10 #include "chrome/browser/ui/chrome_select_file_policy.h" 10 #include "chrome/browser/ui/chrome_select_file_policy.h"
(...skipping 13 matching lines...) Expand all
24 TabContents* tab_contents, 24 TabContents* tab_contents,
25 const Extension& extension, 25 const Extension& extension,
26 const base::Callback<void(void)>& on_finish) 26 const base::Callback<void(void)>& on_finish)
27 : tab_contents_(tab_contents), 27 : tab_contents_(tab_contents),
28 extension_(extension), 28 extension_(extension),
29 on_finish_(on_finish), 29 on_finish_(on_finish),
30 preferences_(MediaGalleriesPreferencesFactory::GetForProfile( 30 preferences_(MediaGalleriesPreferencesFactory::GetForProfile(
31 tab_contents_->profile())) { 31 tab_contents_->profile())) {
32 LookUpPermissions(); 32 LookUpPermissions();
33 33
34 #if defined(TOOLKIT_GTK)
35 dialog_.reset(MediaGalleriesDialog::Create(this)); 34 dialog_.reset(MediaGalleriesDialog::Create(this));
36 #else
37 NOTIMPLEMENTED();
38 #endif
39 } 35 }
40 36
41 MediaGalleriesDialogController::~MediaGalleriesDialogController() { 37 MediaGalleriesDialogController::~MediaGalleriesDialogController() {
42 if (select_folder_dialog_.get()) 38 if (select_folder_dialog_.get())
43 select_folder_dialog_->ListenerDestroyed(); 39 select_folder_dialog_->ListenerDestroyed();
44 } 40 }
45 41
46 string16 MediaGalleriesDialogController::GetHeader() { 42 string16 MediaGalleriesDialogController::GetHeader() {
47 return l10n_util::GetStringFUTF16(IDS_MEDIA_GALLERIES_DIALOG_HEADER, 43 return l10n_util::GetStringFUTF16(IDS_MEDIA_GALLERIES_DIALOG_HEADER,
48 UTF8ToUTF16(extension_.name())); 44 UTF8ToUTF16(extension_.name()));
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 preferences_->SetGalleryPermissionForExtension( 176 preferences_->SetGalleryPermissionForExtension(
181 extension_, id, true); 177 extension_, id, true);
182 } 178 }
183 } 179 }
184 180
185 // MediaGalleries dialog ------------------------------------------------------- 181 // MediaGalleries dialog -------------------------------------------------------
186 182
187 MediaGalleriesDialog::~MediaGalleriesDialog() {} 183 MediaGalleriesDialog::~MediaGalleriesDialog() {}
188 184
189 } // namespace chrome 185 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/media_gallery/media_galleries_dialog_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698