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

Side by Side Diff: components/translate/core/browser/translate_script.cc

Issue 2712513004: Use a qualified path for grit-generated headers in components/ (Closed)
Patch Set: more checkdeps Created 3 years, 10 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 "components/translate/core/browser/translate_script.h" 5 #include "components/translate/core/browser/translate_script.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/profiler/scoped_tracker.h" 11 #include "base/profiler/scoped_tracker.h"
12 #include "base/single_thread_task_runner.h" 12 #include "base/single_thread_task_runner.h"
13 #include "base/strings/string_piece.h" 13 #include "base/strings/string_piece.h"
14 #include "base/strings/string_util.h" 14 #include "base/strings/string_util.h"
15 #include "base/strings/stringprintf.h" 15 #include "base/strings/stringprintf.h"
16 #include "base/threading/thread_task_runner_handle.h" 16 #include "base/threading/thread_task_runner_handle.h"
17 #include "build/build_config.h" 17 #include "build/build_config.h"
18 #include "components/grit/components_resources.h"
18 #include "components/translate/core/browser/translate_url_fetcher.h" 19 #include "components/translate/core/browser/translate_url_fetcher.h"
19 #include "components/translate/core/browser/translate_url_util.h" 20 #include "components/translate/core/browser/translate_url_util.h"
20 #include "components/translate/core/common/translate_switches.h" 21 #include "components/translate/core/common/translate_switches.h"
21 #include "components/translate/core/common/translate_util.h" 22 #include "components/translate/core/common/translate_util.h"
22 #include "components/variations/variations_associated_data.h" 23 #include "components/variations/variations_associated_data.h"
23 #include "google_apis/google_api_keys.h" 24 #include "google_apis/google_api_keys.h"
24 #include "grit/components_resources.h"
25 #include "net/base/escape.h" 25 #include "net/base/escape.h"
26 #include "net/base/url_util.h" 26 #include "net/base/url_util.h"
27 #include "ui/base/resource/resource_bundle.h" 27 #include "ui/base/resource/resource_bundle.h"
28 28
29 namespace translate { 29 namespace translate {
30 30
31 namespace { 31 namespace {
32 32
33 const int kExpirationDelayDays = 1; 33 const int kExpirationDelayDays = 1;
34 34
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 171
172 for (RequestCallbackList::iterator it = callback_list_.begin(); 172 for (RequestCallbackList::iterator it = callback_list_.begin();
173 it != callback_list_.end(); 173 it != callback_list_.end();
174 ++it) { 174 ++it) {
175 it->Run(success, data); 175 it->Run(success, data);
176 } 176 }
177 callback_list_.clear(); 177 callback_list_.clear();
178 } 178 }
179 179
180 } // namespace translate 180 } // namespace translate
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698