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

Side by Side Diff: chrome/browser/ui/views/extensions/extension_installed_bubble_view.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/views/extensions/extension_installed_bubble_view.h" 5 #include "chrome/browser/ui/views/extensions/extension_installed_bubble_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "base/i18n/rtl.h" 10 #include "base/i18n/rtl.h"
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 void InstalledBubbleContent::ButtonPressed(views::Button* sender, 278 void InstalledBubbleContent::ButtonPressed(views::Button* sender,
279 const ui::Event& event) { 279 const ui::Event& event) {
280 DCHECK_EQ(sender, close_button_); 280 DCHECK_EQ(sender, close_button_);
281 GetWidget()->Close(); 281 GetWidget()->Close();
282 } 282 }
283 283
284 void InstalledBubbleContent::LinkClicked(views::Link* source, int event_flags) { 284 void InstalledBubbleContent::LinkClicked(views::Link* source, int event_flags) {
285 GetWidget()->Close(); 285 GetWidget()->Close();
286 286
287 if (source == sign_in_link_) { 287 if (source == sign_in_link_) {
288 #if !defined(OS_ANDROID)
288 chrome::ShowBrowserSignin( 289 chrome::ShowBrowserSignin(
289 browser_, signin_metrics::SOURCE_EXTENSION_INSTALL_BUBBLE); 290 browser_, signin_metrics::SOURCE_EXTENSION_INSTALL_BUBBLE);
291 #endif
290 return; 292 return;
291 } 293 }
292 294
293 DCHECK_EQ(manage_shortcut_, source); 295 DCHECK_EQ(manage_shortcut_, source);
294 296
295 std::string configure_url = chrome::kChromeUIExtensionsURL; 297 std::string configure_url = chrome::kChromeUIExtensionsURL;
296 configure_url += chrome::kExtensionConfigureCommandsSubPage; 298 configure_url += chrome::kExtensionConfigureCommandsSubPage;
297 chrome::NavigateParams params(chrome::GetSingletonTabNavigateParams( 299 chrome::NavigateParams params(chrome::GetSingletonTabNavigateParams(
298 browser_, GURL(configure_url))); 300 browser_, GURL(configure_url)));
299 chrome::Navigate(&params); 301 chrome::Navigate(&params);
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 if (bubble_.extension() && bubble_.type() == bubble_.PAGE_ACTION && 540 if (bubble_.extension() && bubble_.type() == bubble_.PAGE_ACTION &&
539 !extensions::FeatureSwitch::extension_action_redesign()->IsEnabled()) { 541 !extensions::FeatureSwitch::extension_action_redesign()->IsEnabled()) {
540 BrowserView* browser_view = 542 BrowserView* browser_view =
541 BrowserView::GetBrowserViewForBrowser(bubble_.browser()); 543 BrowserView::GetBrowserViewForBrowser(bubble_.browser());
542 browser_view->GetLocationBarView()->SetPreviewEnabledPageAction( 544 browser_view->GetLocationBarView()->SetPreviewEnabledPageAction(
543 extensions::ExtensionActionManager::Get(bubble_.browser()->profile())-> 545 extensions::ExtensionActionManager::Get(bubble_.browser()->profile())->
544 GetPageAction(*bubble_.extension()), 546 GetPageAction(*bubble_.extension()),
545 false); // preview_enabled 547 false); // preview_enabled
546 } 548 }
547 } 549 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698