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

Side by Side Diff: chrome/browser/translate/translate_infobar_delegate.cc

Issue 5606002: Move:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/translate/translate_infobar_delegate.h" 5 #include "chrome/browser/translate/translate_infobar_delegate.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "app/resource_bundle.h" 10 #include "app/resource_bundle.h"
11 #include "base/metrics/histogram.h" 11 #include "base/metrics/histogram.h"
12 #include "chrome/browser/browser_process.h" 12 #include "chrome/browser/browser_process.h"
13 #include "chrome/browser/profile.h" 13 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/browser/tab_contents/tab_contents.h" 14 #include "chrome/browser/tab_contents/tab_contents.h"
15 #include "chrome/browser/translate/translate_infobar_view.h" 15 #include "chrome/browser/translate/translate_infobar_view.h"
16 #include "chrome/browser/translate/translate_manager.h" 16 #include "chrome/browser/translate/translate_manager.h"
17 #include "chrome/common/chrome_constants.h" 17 #include "chrome/common/chrome_constants.h"
18 #include "grit/generated_resources.h" 18 #include "grit/generated_resources.h"
19 #include "grit/theme_resources.h" 19 #include "grit/theme_resources.h"
20 20
21 // static 21 // static
22 TranslateInfoBarDelegate* TranslateInfoBarDelegate::CreateDelegate( 22 TranslateInfoBarDelegate* TranslateInfoBarDelegate::CreateDelegate(
23 Type type, 23 Type type,
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 std::swap(offsets[0], offsets[1]); 399 std::swap(offsets[0], offsets[1]);
400 *swap_languages = true; 400 *swap_languages = true;
401 } else { 401 } else {
402 *swap_languages = false; 402 *swap_languages = false;
403 } 403 }
404 404
405 strings->push_back(text.substr(0, offsets[0])); 405 strings->push_back(text.substr(0, offsets[0]));
406 strings->push_back(text.substr(offsets[0], offsets[1] - offsets[0])); 406 strings->push_back(text.substr(offsets[0], offsets[1] - offsets[0]));
407 strings->push_back(text.substr(offsets[1])); 407 strings->push_back(text.substr(offsets[1]));
408 } 408 }
OLDNEW
« no previous file with comments | « chrome/browser/translate/options_menu_model.cc ('k') | chrome/browser/translate/translate_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698