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

Side by Side Diff: chrome/browser/password_manager/save_password_infobar_delegate.cc

Issue 1133613007: Move password_manager_util and password_bubble_experiment to components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@486739_componentise_experiment_utils_to_ios_sources
Patch Set: Created 5 years, 7 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/password_manager/save_password_infobar_delegate.h" 5 #include "chrome/browser/password_manager/save_password_infobar_delegate.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "chrome/browser/infobars/infobar_service.h" 8 #include "chrome/browser/infobars/infobar_service.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/sync/profile_sync_service.h" 10 #include "chrome/browser/sync/profile_sync_service.h"
11 #include "chrome/browser/sync/profile_sync_service_factory.h" 11 #include "chrome/browser/sync/profile_sync_service_factory.h"
12 #include "chrome/browser/ui/passwords/password_bubble_experiment.h"
13 #include "chrome/grit/chromium_strings.h" 12 #include "chrome/grit/chromium_strings.h"
14 #include "chrome/grit/generated_resources.h" 13 #include "chrome/grit/generated_resources.h"
15 #include "components/infobars/core/infobar.h" 14 #include "components/infobars/core/infobar.h"
15 #include "components/password_manager/core/browser/password_bubble_experiment.h"
16 #include "components/password_manager/core/browser/password_manager_client.h" 16 #include "components/password_manager/core/browser/password_manager_client.h"
17 #include "content/public/browser/web_contents.h" 17 #include "content/public/browser/web_contents.h"
18 #include "grit/theme_resources.h" 18 #include "grit/theme_resources.h"
19 #include "ui/base/l10n/l10n_util.h" 19 #include "ui/base/l10n/l10n_util.h"
20 20
21 #if defined(OS_ANDROID) 21 #if defined(OS_ANDROID)
22 #include "chrome/browser/ui/android/infobars/save_password_infobar.h" 22 #include "chrome/browser/ui/android/infobars/save_password_infobar.h"
23 #endif 23 #endif
24 24
25 namespace { 25 namespace {
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 WindowOpenDisposition disposition) { 180 WindowOpenDisposition disposition) {
181 InfoBarService::WebContentsFromInfoBar(infobar()) 181 InfoBarService::WebContentsFromInfoBar(infobar())
182 ->OpenURL(content::OpenURLParams( 182 ->OpenURL(content::OpenURLParams(
183 GURL(l10n_util::GetStringUTF16( 183 GURL(l10n_util::GetStringUTF16(
184 IDS_PASSWORD_MANAGER_SMART_LOCK_ARTICLE)), 184 IDS_PASSWORD_MANAGER_SMART_LOCK_ARTICLE)),
185 content::Referrer(), 185 content::Referrer(),
186 (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition, 186 (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition,
187 ui::PAGE_TRANSITION_LINK, false)); 187 ui::PAGE_TRANSITION_LINK, false));
188 return true; 188 return true;
189 } 189 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698