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

Side by Side Diff: chrome/browser/ui/website_settings/permission_bubble_manager.cc

Issue 1391893003: NOT FOR REVIEW: Aura on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 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/ui/website_settings/permission_bubble_manager.h" 5 #include "chrome/browser/ui/website_settings/permission_bubble_manager.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/metrics/user_metrics_action.h" 8 #include "base/metrics/user_metrics_action.h"
9 #include "chrome/browser/ui/website_settings/permission_bubble_request.h" 9 #include "chrome/browser/ui/website_settings/permission_bubble_request.h"
10 #include "chrome/common/chrome_switches.h" 10 #include "chrome/common/chrome_switches.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 if (base::CommandLine::ForCurrentProcess()->HasSwitch( 69 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
70 switches::kDisablePermissionsBubbles)) 70 switches::kDisablePermissionsBubbles))
71 return false; 71 return false;
72 return true; 72 return true;
73 } 73 }
74 74
75 PermissionBubbleManager::PermissionBubbleManager( 75 PermissionBubbleManager::PermissionBubbleManager(
76 content::WebContents* web_contents) 76 content::WebContents* web_contents)
77 : content::WebContentsObserver(web_contents), 77 : content::WebContentsObserver(web_contents),
78 require_user_gesture_(false), 78 require_user_gesture_(false),
79 #if !defined(OS_ANDROID) // No bubbles in android tests. 79 #if !defined(OS_ANDROID) || defined(USE_AURA) // No bubbles in android tests.
80 view_factory_(base::Bind(&PermissionBubbleView::Create)), 80 view_factory_(base::Bind(&PermissionBubbleView::Create)),
81 #endif 81 #endif
82 view_(nullptr), 82 view_(nullptr),
83 main_frame_has_fully_loaded_(false), 83 main_frame_has_fully_loaded_(false),
84 auto_response_for_test_(NONE), 84 auto_response_for_test_(NONE),
85 weak_factory_(this) { 85 weak_factory_(this) {
86 } 86 }
87 87
88 PermissionBubbleManager::~PermissionBubbleManager() { 88 PermissionBubbleManager::~PermissionBubbleManager() {
89 if (view_ != NULL) 89 if (view_ != NULL)
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 case DENY_ALL: 469 case DENY_ALL:
470 Deny(); 470 Deny();
471 break; 471 break;
472 case DISMISS: 472 case DISMISS:
473 Closing(); 473 Closing();
474 break; 474 break;
475 case NONE: 475 case NONE:
476 NOTREACHED(); 476 NOTREACHED();
477 } 477 }
478 } 478 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698