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

Side by Side Diff: chrome/browser/ui/passwords/manage_passwords_icon.cc

Issue 498773003: Use a qualified path for chromium_strings, google_chrome_strings, and generated_resources. (part 2 … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 unified diff | Download patch | Annotate | Revision Log
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/passwords/manage_passwords_icon.h" 5 #include "chrome/browser/ui/passwords/manage_passwords_icon.h"
6 6
7 #include "grit/generated_resources.h" 7 #include "chrome/grit/generated_resources.h"
8 #include "grit/theme_resources.h" 8 #include "grit/theme_resources.h"
9 9
10 ManagePasswordsIcon::ManagePasswordsIcon() 10 ManagePasswordsIcon::ManagePasswordsIcon()
11 : icon_id_(0), 11 : icon_id_(0),
12 tooltip_text_id_(0), 12 tooltip_text_id_(0),
13 state_(password_manager::ui::INACTIVE_STATE), 13 state_(password_manager::ui::INACTIVE_STATE),
14 active_(false) { 14 active_(false) {
15 } 15 }
16 16
17 ManagePasswordsIcon::~ManagePasswordsIcon() { 17 ManagePasswordsIcon::~ManagePasswordsIcon() {
(...skipping 29 matching lines...) Expand all
47 #if !defined(OS_ANDROID) 47 #if !defined(OS_ANDROID)
48 icon_id_ = active() ? IDR_SAVE_PASSWORD_ACTIVE : IDR_SAVE_PASSWORD_INACTIVE; 48 icon_id_ = active() ? IDR_SAVE_PASSWORD_ACTIVE : IDR_SAVE_PASSWORD_INACTIVE;
49 tooltip_text_id_ = IDS_PASSWORD_MANAGER_TOOLTIP_MANAGE; 49 tooltip_text_id_ = IDS_PASSWORD_MANAGER_TOOLTIP_MANAGE;
50 if (state() == password_manager::ui::BLACKLIST_STATE) 50 if (state() == password_manager::ui::BLACKLIST_STATE)
51 icon_id_ = active() ? IDR_SAVE_PASSWORD_DISABLED_ACTIVE 51 icon_id_ = active() ? IDR_SAVE_PASSWORD_DISABLED_ACTIVE
52 : IDR_SAVE_PASSWORD_DISABLED_INACTIVE; 52 : IDR_SAVE_PASSWORD_DISABLED_INACTIVE;
53 else if (password_manager::ui::IsPendingState(state())) 53 else if (password_manager::ui::IsPendingState(state()))
54 tooltip_text_id_ = IDS_PASSWORD_MANAGER_TOOLTIP_SAVE; 54 tooltip_text_id_ = IDS_PASSWORD_MANAGER_TOOLTIP_SAVE;
55 #endif 55 #endif
56 } 56 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/passwords/manage_passwords_bubble_model.cc ('k') | chrome/browser/ui/pdf/pdf_unsupported_feature.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698