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

Unified Diff: ui/android/java/src/org/chromium/ui/SelectFileDialog.java

Issue 10962002: Adding NativeWindow base class with no activity. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: deleted whitespace in OWNERS Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/android/OWNERS ('k') | ui/android/java/src/org/chromium/ui/gfx/ActivityNativeWindow.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/android/java/src/org/chromium/ui/SelectFileDialog.java
diff --git a/ui/android/java/src/org/chromium/ui/SelectFileDialog.java b/ui/android/java/src/org/chromium/ui/SelectFileDialog.java
index a8973004d8f594f2825716d59969c2537eb8c94d..c9115bf9b9dda9d80eab6833c49bf1bb82ba974e 100644
--- a/ui/android/java/src/org/chromium/ui/SelectFileDialog.java
+++ b/ui/android/java/src/org/chromium/ui/SelectFileDialog.java
@@ -161,7 +161,7 @@ class SelectFileDialog implements NativeWindow.IntentCallback{
// Broadcast to the media scanner that there's a new photo on the device so it will
// show up right away in the gallery (rather than waiting until the next time the media
// scanner runs).
- window.getActivity().sendBroadcast(new Intent(
+ window.sendBroadcast(new Intent(
Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, mCameraOutputUri));
} else {
// We get back a content:// URI from the system if the user picked a file from the
« no previous file with comments | « ui/android/OWNERS ('k') | ui/android/java/src/org/chromium/ui/gfx/ActivityNativeWindow.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698